/* Hallmark · macrostructure: Product Narrative · genre: modern-minimal · tone: utilitarian
 * theme: Coral · anchor: restrained coral · audience: Malaysian insurance agents
 * pre-emit critique: P5 H5 E4 S5 R5 V4
 */
/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-cyrillic-ext-2317fa4bb293.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-cyrillic-689443969494.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-vietnamese-8fa40e5d2482.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-latin-ext-824f485b5d26.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-latin-19f9c92546aa.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #f8f5ef;
  --surface: #fffdfa;
  --surface-2: #f2eee7;
  --ink: #16191d;
  --muted: #606873;
  --line: #d8d6d1;
  --accent: #df5b48;
  --accent-dark: #c94735;
  --accent-soft: #fbe4df;
  --good: #087a42;
  --good-soft: #e1f5e9;
  --warn: #a44922;
  --warn-soft: #fce8d6;
  --bad: #b42318;
  --bad-soft: #fee4e2;
  --focus: #1769aa;
  --font-body: "Geist", ui-sans-serif, sans-serif;
  --radius: 7px;
  --shadow: 0 8px 24px rgba(39, 31, 24, 0.06);
}

.onboarding-checklist > h2 { margin-bottom: 0.35rem; }
.onboarding-checklist > p { margin: 0 0 0.7rem; }
.onboarding-checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.onboarding-checklist li { display: flex; align-items: center; gap: 0.55rem; min-height: 24px; font-size: 14px; line-height: 20px; }
.onboarding-checklist li > span:first-child { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; flex: 0 0 18px; }
.onboarding-checklist li > span + span, .onboarding-checklist li > a { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.onboarding-checklist li a { color: inherit; font-weight: 500; }
.settings-nav-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.settings-nav-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.settings-nav-list strong {
  font-size: 14px;
}
.settings-nav-list span {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.settings-nav-list b {
  align-self: center;
  font-size: 22px;
  line-height: 14px;
  font-weight: 400;
}
.settings-subpage {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.settings-subpage-form {
  display: grid;
  gap: 16px;
}
.settings-subpage-form > label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.settings-subpage-form input,
.settings-subpage-form select {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}
.settings-subpage-form fieldset {
  margin-top: 8px;
  padding-top: 16px;
}
.settings-security-page {
  display: grid;
  gap: 16px;
}
.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.session-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
.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;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 3px;
}
.brand {
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 0.75rem 1.05rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.button:hover {
  background: var(--accent-dark);
}
.button:active {
  transform: translateY(1px);
}
.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button-secondary:hover {
  background: var(--surface-2);
}
.text-link {
  font-weight: 600;
  text-decoration: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
.marketing {
  max-width: 1500px;
  margin: auto;
}
.marketing-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}
.marketing-nav nav,
.marketing-nav > div {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marketing-nav nav a {
  text-decoration: none;
  font-size: 0.9rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 5vw;
  align-items: center;
  min-height: 600px;
  padding: 7rem 4vw 5rem;
}
.hero h1 {
  font-size: clamp(3.5rem, 7vw, 7.4rem);
  letter-spacing: -0.075em;
  line-height: 0.86;
  margin: 0;
  max-width: 8ch;
  overflow-wrap: anywhere;
  min-width: 0;
}
.lede {
  font-size: 1.35rem;
  line-height: 1.5;
  max-width: 37rem;
  color: #303943;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}
.product-preview {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.2rem;
  min-width: 0;
}
.product-preview figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.preview-head,
.preview-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.7fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.preview-head {
  grid-template-columns: 1fr 2fr auto;
  background: var(--surface-2);
  border-radius: 5px;
}
.preview-head > span {
  font-weight: 700;
  font-size: 1.1rem;
}
.mini-button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.preview-label {
  font-size: 0.75rem;
  color: var(--muted);
  background: #f6f3ed;
}
.preview-row em {
  font-style: normal;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 4vw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.workflow article {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: start;
}
.workflow b {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}
.workflow h2 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.workflow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.pricing,
.faq {
  padding: 6rem 4vw;
}
.pricing header h2,
.faq header h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  letter-spacing: -0.06em;
  margin: 0;
  overflow-wrap: anywhere;
}
.pricing header > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.price-grid article {
  padding: 2rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.price-grid article:last-child {
  border: 0;
}
.price-grid .featured {
  background: var(--surface);
}
.price-grid h3 {
  margin: 0;
}
.price-grid strong {
  font-size: 1.8rem;
  margin-top: 1.4rem;
}
.price-grid p,
.pricing-note {
  color: var(--muted);
}
.price-grid ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}
.price-grid li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.price-grid li svg {
  width: 16px;
}
.pricing-note {
  font-size: 0.85rem;
}
.faq {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6vw;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
}
.faq details p {
  color: var(--muted);
  line-height: 1.6;
}
.marketing footer {
  border-top: 1px solid var(--line);
  padding: 2rem 4vw;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marketing footer p {
  color: var(--muted);
  flex: 1;
}
.marketing footer nav {
  display: flex;
  gap: 1.5rem;
}
.auth-page {
  min-height: 100vh;
  padding: 2rem;
  display: grid;
  place-items: center;
  position: relative;
}
.auth-page .back {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.auth-page > section {
  width: min(100%, 440px);
}
.auth-page .brand {
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}
.auth-page h1 {
  text-align: center;
  font-size: 2.3rem;
  letter-spacing: -0.05em;
}
.auth-page form,
.form-panel form {
  display: grid;
  gap: 1.1rem;
}
.auth-page label,
.form-panel label {
  font-weight: 600;
  display: grid;
  gap: 0.45rem;
}
.auth-page input,
.form-panel input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid #aaa9a5;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.8rem;
}
.auth-page .check {
  display: flex;
  grid-template-columns: auto 1fr;
  font-weight: 400;
}
.check input {
  width: auto;
}
.auth-page form > p {
  text-align: center;
  color: var(--muted);
}
.auth-page > section > small {
  display: block;
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
}
.form-link {
  text-align: right;
  font-size: 0.9rem;
}
.form-intro {
  color: var(--muted);
  line-height: 1.5;
}
.legal {
  max-width: 760px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  line-height: 1.7;
}
.legal h1 {
  font-size: 3rem;
  letter-spacing: -0.05em;
}
.legal h2 {
  margin-top: 2.5rem;
}
.draft {
  margin-top: 3rem;
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 0.7rem;
  border-radius: var(--radius);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.sidebar nav {
  display: grid;
  gap: 0.3rem;
  margin-top: 2.4rem;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: #38414b;
}
.sidebar nav a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
.plan-meter {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.plan-meter small {
  color: var(--muted);
}
.plan-meter > div {
  height: 7px;
  background: #e3e3e1;
  border-radius: 9px;
  overflow: hidden;
}
.plan-meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.app-main {
  padding: 2.3rem 2.8rem 5rem;
  min-width: 0;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.6rem;
}
.page-header h1 {
  font-size: 2.35rem;
  letter-spacing: -0.05em;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}
.metrics article {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}
.metrics article:last-child {
  border: 0;
}
.metrics span {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
}
.metrics strong {
  font-size: 1.8rem;
  color: var(--ink);
}
.metrics small {
  font-size: 0.75rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
}
.dashboard-grid aside {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}
.panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel h2,
.panel h3 {
  margin: 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e4e1dc;
  font-size: 0.87rem;
}
th {
  color: var(--muted);
  font-size: 0.75rem;
  background: #f6f3ed;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
}
tr:last-child td {
  border-bottom: 0;
}
.selected td {
  background: var(--accent-soft);
}
.integration-ok,
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}
.integration-ok svg {
  color: #07a254;
}
.integration-ok p,
.notice p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.notice svg {
  color: var(--warn);
}
.notice.static {
  margin-top: 1.2rem;
}
.activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.activity li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.activity li span:first-child {
  color: var(--muted);
}
.status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
}
.status.good {
  color: var(--good);
  background: var(--good-soft);
}
.status.warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.status.bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.toolbar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  border: 1px solid #aaa9a5;
  border-radius: 6px;
  background: var(--surface);
  padding: 0 0.8rem;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
}
.toolbar select {
  width: auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
}
.detail dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.7rem;
  font-size: 0.88rem;
}
.detail dt {
  color: var(--muted);
}
.detail dd {
  margin: 0;
}
.detail hr,
.form-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.3rem 0;
}
.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.policy-list li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.integration-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.5rem;
}
.integration-card > svg {
  color: var(--accent);
}
.integration-card p,
.plan p,
.form-panel p {
  color: var(--muted);
  line-height: 1.55;
}
.billing-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 1.2rem;
}
.billing-summary div {
  padding: 1.3rem;
  border-right: 1px solid var(--line);
}
.billing-summary div:last-child {
  border: 0;
}
.billing-summary p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}
.billing-summary strong {
  font-size: 1.4rem;
}
.plan {
  padding: 1.5rem;
}
.plan > strong {
  font-size: 1.8rem;
}
.plan small {
  font-weight: 400;
  color: var(--muted);
}
.form-panel {
  max-width: 760px;
  padding: 1.5rem;
}
.form-panel h2 {
  margin-bottom: 1rem;
}
.empty {
  text-align: center;
  padding: 4rem;
}
.mobile-nav {
  display: none;
}
.icon-label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
@media (max-width: 900px) {
  .marketing-nav nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }
  .workflow,
  .price-grid,
  .faq {
    grid-template-columns: 1fr;
  }
  .price-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .faq {
    gap: 2rem;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .app-main {
    padding: 1.5rem 1.2rem 6rem;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 0.6rem env(safe-area-inset-right)
      calc(0.6rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.69rem;
  }
  .mobile-nav a.active {
    color: var(--accent);
  }
  .dashboard-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.phone-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.phone-field > label {
  display: block;
}
.phone-field-controls {
  display:flex; align-items:stretch; width:100%; min-width:0; min-height:46px;
  border:1px solid #aaa7a1; border-radius:var(--radius); background:var(--surface); overflow:hidden;
}
.phone-field-controls:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.phone-field-controls .phone-country-trigger { display:flex; align-items:center; justify-content:space-between; gap:6px; flex:0 0 104px; width:104px; min-height:44px; padding:0 10px; border:0; border-right:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); font:inherit; font-size:13px; cursor:pointer; }
.phone-field-controls input { flex:1 1 0; width:0; min-width:0; min-height:44px; border:0; border-radius:0; background:transparent; box-shadow:none; padding:10px 12px; margin:0; }
.phone-field-controls input:focus { outline:0; box-shadow:none; }
.phone-field-controls:has(input[aria-invalid="true"]) { border-color:var(--bad); }
.phone-country-dialog { width:min(400px,calc(100% - 2rem)); display:flex; flex-direction:column; overflow:hidden; }
.phone-country-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-shrink:0; margin-bottom:14px; }
.phone-country-heading h2 { margin:0; font-size:18px; }
.phone-country-close { border:0; background:transparent; padding:8px; color:var(--muted); cursor:pointer; }
.phone-country-search { width:100%; min-height:44px; flex-shrink:0; margin-bottom:10px; }
.phone-country-options { overflow:auto; min-height:0; max-height:50dvh; overscroll-behavior:contain; }
.phone-country-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:46px; padding:10px 8px; text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; font:inherit; font-size:14px; }
.phone-country-option > span:last-child { display:flex; align-items:center; gap:8px; color:var(--muted); white-space:nowrap; }
.phone-country-option strong { display:inline-block; width:28px; color:var(--muted); font-size:12px; }
.phone-country-option:hover,.phone-country-option:focus-visible { background:var(--surface-2); }
@media(max-width:600px){ .phone-country-dialog { width:100%; max-width:100%; } }
@media (max-width: 600px) {
  .marketing-nav {
    height: 64px;
    padding: 0 1rem;
  }
  .marketing-nav > div {
    gap: 0.7rem;
  }
  .marketing-nav .marketing-signup-link { display: none; }
  .marketing-nav .marketing-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius);
    background: var(--accent);
    color: white;
    font-weight: 700;
    text-decoration: none;
  }
  .hero {
    padding: 4rem 1rem 3rem;
    min-height: auto;
    gap: 3rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .lede {
    font-size: 1.1rem;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-preview {
    padding: 0.65rem;
  }
  .preview-head {
    grid-template-columns: 1fr auto;
  }
  .preview-head > span {
    display: none;
  }
  .preview-row {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
  }
  .preview-row > *:last-child {
    display: none;
  }
  .workflow {
    padding: 2rem 1rem;
  }
  .pricing,
  .faq {
    padding: 4rem 1rem;
  }
  .pricing header h2,
  .faq header h2 {
    font-size: 2.5rem;
  }
  .marketing footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .marketing footer p {
    margin: 0;
  }
  .page-header {
    align-items: flex-start;
    gap: 1rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header .button {
    padding: 0.65rem;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics article {
    padding: 1rem;
  }
  .metrics article:nth-child(2) {
    border-right: 0;
  }
  .metrics article:nth-child(3) {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
  }
  .billing-summary {
    grid-template-columns: 1fr;
  }
  .billing-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .activity li {
    grid-template-columns: 55px 1fr auto;
  }
  .auth-page {
    padding: 5rem 1rem 2rem;
  }
  .auth-page .back {
    top: 1.2rem;
    left: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Product UI: focused records, clear actions, and restrained density */
.mobile-product-header {
  display: none;
}
.list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: -0.35rem 0 1.2rem;
}
.minimalist-list-panel {
  padding: 0.25rem 1rem;
}
.minimalist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.minimalist-list > li + li {
  border-top: 1px solid var(--line);
}
.minimalist-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.85rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
}
.minimalist-list > li > a:hover,
.minimalist-list > li > a:focus-visible {
  color: var(--accent-dark);
}
.minimalist-list > li > a strong {
  font-size: 1rem;
}
.product-metrics article {
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.2rem;
}
.product-metrics article > svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.product-metrics article span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.product-metrics article small {
  font-size: 0.82rem;
  flex: 1;
}
.product-metrics article small em {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}
.product-metrics article strong {
  font-size: 1.35rem;
}
.quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.quick-actions h2 {
  margin: 0;
  font-size: 1.15rem;
}
.quick-actions .eyebrow {
  margin-bottom: 0.2rem;
}
.quick-actions > div:last-child {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.upcoming-renewals {
  max-width: none;
}
.renewal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.renewal-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.renewal-list li:last-child {
  border-bottom: 0;
}
.renewal-list a {
  display: grid;
  gap: 0.2rem;
  color: var(--ink);
  text-decoration: none;
}
.renewal-list a span {
  color: var(--muted);
  font-size: 0.85rem;
}
.renewal-list time {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.policy-minimal-list details {
  padding: 0.15rem 0;
}
.policy-minimal-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.policy-minimal-list summary::-webkit-details-marker {
  display: none;
}
.policy-minimal-list summary > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}
.policy-minimal-list summary time {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.policy-detail-body {
  border-top: 1px solid var(--line);
  padding: 1rem 0.25rem 1.2rem;
}
.policy-detail-body dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}
.policy-detail-body dl div {
  display: grid;
  gap: 0.3rem;
}
.policy-detail-body dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.policy-detail-body dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .mobile-product-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 35;
    padding: calc(0.85rem + env(safe-area-inset-top)) 1.2rem 0.85rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    backdrop-filter: blur(12px);
  }
  .mobile-product-header span {
    color: var(--accent);
  }
}

/* Functional application states */
.grow {
  flex: 1;
}
.compact {
  align-items: center !important;
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.flash,
.mock-banner,
.connection-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}
.flash.success {
  background: var(--good-soft);
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 35%, var(--line));
}
.flash.error {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 35%, var(--line));
}
.mock-banner {
  background: var(--warn-soft);
  color: var(--warn);
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-panel select,
.form-panel input,
.row-menu input,
.row-menu select,
.integration-card input,
.send-now select {
  width: 100%;
  border: 1px solid #aaa9a5;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.75rem;
}
.form-panel fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}
.form-panel legend {
  font-weight: 700;
  padding: 0 0.4rem;
}
.button-danger {
  background: var(--bad);
  border-color: var(--bad);
}
.button-danger:hover {
  background: #8e1c14;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.5rem 0;
}
.pagination a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}
.row-menu {
  position: relative;
}
.row-menu summary {
  cursor: pointer;
  font-weight: 600;
}
.row-menu[open] {
  min-width: 240px;
}
.row-menu form {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.row-menu label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
}
.import-panel {
  margin-bottom: 1rem;
}
.import-errors {
  background: var(--bad-soft);
  color: var(--bad);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.result-list,
.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.result-list li,
.session-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.result-list span,
.session-list small {
  display: block;
  color: var(--muted);
}
.policy-picker {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius);
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.send-now {
  margin-bottom: 1rem;
}
.connection-banner {
  position: sticky;
  top: 0.5rem;
  z-index: 20;
  background: var(--warn-soft);
  color: var(--warn);
  width: 100%;
  text-align: left;
}
.connection-banner.action {
  cursor: pointer;
}
.install-chip {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  border: 1px solid var(--accent);
  border-radius: 99px;
  background: var(--surface);
  color: var(--accent-dark);
  padding: 0.7rem 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .install-chip {
    bottom: 5.5rem;
  }
}
@media (max-width: 600px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .toolbar.grow {
    flex-basis: 100%;
  }
  .result-list li,
  .session-list li {
    align-items: flex-start;
    flex-direction: column;
  }
  .row-menu[open] {
    min-width: 200px;
  }
  .detail-grid .form-panel {
    padding: 1rem;
  }
}
.route-progress {
  position: fixed;
  top: 0;
  left: 230px;
  right: 0;
  z-index: 50;
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .route-progress {
    left: 0;
  }
}
.header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.compact-empty {
  padding: 2rem 1rem;
}
.compact-empty .button {
  margin-top: 0.5rem;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.dialog-backdrop,
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 24, 29, 0.46);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.dialog {
  width: min(720px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}
.dialog > header,
.mobile-sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dialog h2,
.mobile-sheet h2 {
  margin: 0;
}
.dialog form {
  display: grid;
  gap: 1rem;
}
.dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.customer-dialog label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}
.customer-dialog label small,
.customer-dialog fieldset small {
  font-weight: 400;
  color: var(--muted);
}
.customer-dialog input,
.customer-dialog select {
  width: 100%;
  border: 1px solid #aaa9a5;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.75rem;
}
.customer-dialog [aria-invalid="true"] {
  border-color: var(--bad);
}
.field-error {
  display: block;
  color: var(--bad) !important;
  font-weight: 600 !important;
}
.consent-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.consent-row input {
  width: 18px !important;
  height: 18px;
  flex: 0 0 18px;
  margin: 0.12rem 0 0;
}
.narrow-form {
  max-width: 620px;
}
.mobile-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 44px;
}
.mobile-nav button.active {
  color: var(--accent);
}
.mobile-sheet-backdrop {
  display: none;
}
.sheet-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 1rem;
  color: var(--bad);
  font-weight: 700;
  font-size: 1rem;
}
.mobile-sheet nav {
  display: grid;
}
.mobile-sheet nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
  min-height: 48px;
}
.mobile-sheet nav a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
@media (max-width: 900px) {
  .mobile-sheet-backdrop {
    display: flex;
    align-items: flex-end;
    padding: 0;
  }
  .mobile-sheet {
    width: 100%;
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    padding: 1rem max(1rem, env(safe-area-inset-right))
      calc(1rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
    box-shadow: var(--shadow);
  }
  .app-main {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .header-actions .button {
    flex: 1;
  }
  .dialog-backdrop {
    align-items: end;
    padding: 0;
  }
  .dialog {
    border-radius: 14px 14px 0 0;
    max-height: 92dvh;
    padding: 1rem;
  }
  .form-columns {
    grid-template-columns: 1fr;
  }
  .responsive-table {
    white-space: normal;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .responsive-table td {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.75rem;
    border: 0;
    padding: 0.35rem 0.25rem;
  }
  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
  }
  .responsive-table td:first-child {
    font-size: 1rem;
  }
}

/* Compact product workspace */
.page-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.page-header h1 {
  margin: 0;
}
.policy-toolbar {
  align-items: center;
}
.desktop-policy-filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.desktop-policy-filters label {
  min-width: 145px;
}
.filter-clear {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.mobile-filter-trigger {
  display: none;
}
.policy-records {
  padding: 0 1rem;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
}
.policy-table th,
.policy-table td {
  text-align: left;
  padding: 0.85rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.policy-table th {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}
.policy-table tr:last-child td {
  border-bottom: 0;
}
.policy-table td:last-child {
  width: 130px;
}
.policy-expiry {
  display: grid;
  gap: 0.18rem;
  white-space: nowrap;
}
.policy-expiry small {
  color: var(--muted);
  font-size: 0.75rem;
}
.policy-secondary summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.policy-secondary dl {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.policy-secondary dl div {
  display: grid;
  gap: 0.15rem;
}
.policy-secondary dt {
  font-size: 0.72rem;
  color: var(--muted);
}
.policy-secondary dd {
  margin: 0;
}
.policy-secondary .policy-actions {
  display: grid;
  gap: 0.5rem;
}
.policy-secondary .policy-actions a {
  font-weight: 600;
  font-size: 0.85rem;
}
.policy-mobile-list {
  display: none;
}
.filter-dialog form {
  display: grid;
  gap: 1rem;
}
.filter-dialog label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}
.filter-dialog select,
.template-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #aaa9a5;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.7rem;
}
.filter-dialog header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.customer-compact-summary {
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.customer-compact-summary > dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.customer-compact-summary dl div {
  display: grid;
  gap: 0.25rem;
}
.customer-compact-summary dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.customer-compact-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.eligibility-lines {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.eligibility-lines p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.customer-policies {
  margin-bottom: 1rem;
}
.customer-policies > header > div p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.2rem 0 0;
}
.header-editor,
.add-policy-inline {
  position: relative;
}
.header-editor[open] > .form-panel,
.add-policy-inline[open] > .form-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 25;
  width: min(520px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.secondary-activity {
  padding: 1rem 0;
}
.secondary-activity h2 {
  font-size: 1rem;
}
.secondary-activity .activity {
  color: var(--muted);
}
.template-tabs {
  display: flex;
  gap: 0.3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.template-tabs a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.template-tabs a.active {
  color: var(--accent-dark);
  border-color: var(--accent);
}
.template-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.8rem;
}
.template-controls label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.template-note {
  color: var(--muted);
  font-size: 0.86rem;
}
.template-preview {
  max-width: 820px;
}
.template-preview > header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}
.message-envelope {
  display: grid;
  margin: 0;
  border-block: 1px solid var(--line);
}
.message-envelope div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.message-envelope div:last-child {
  border: 0;
}
.message-envelope dt {
  color: var(--muted);
  font-size: 0.78rem;
}
.message-envelope dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.message-body {
  padding-top: 1rem;
}
.message-body h3 {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.message-body p {
  white-space: pre-line;
  line-height: 1.65;
  margin: 0;
}
.renewal-list time {
  display: grid;
  text-align: right;
  gap: 0.15rem;
}
.renewal-list time small {
  font-weight: 400;
  color: var(--muted);
}
.dashboard-secondary {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}
.dashboard-secondary a {
  font-weight: 600;
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .desktop-policy-filters {
    display: none;
  }
  .policy-toolbar {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
  }
  .policy-toolbar .search {
    min-width: 0;
  }
  .mobile-filter-trigger {
    display: inline-flex;
    min-height: 44px;
  }
  .mobile-filter-trigger span {
    display: grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 99px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
  }
  .policy-table {
    display: none;
  }
  .policy-mobile-list {
    display: grid;
  }
  .policy-records {
    padding: 0.1rem 0.85rem;
  }
  .policy-mobile-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .policy-mobile-card:last-child {
    border-bottom: 0;
  }
  .policy-mobile-card > div:first-child {
    display: grid;
    gap: 0.2rem;
  }
  .policy-mobile-card > div:first-child a {
    text-decoration: none;
  }
  .policy-mobile-card > div:first-child span {
    color: var(--muted);
    font-size: 0.85rem;
  }
  .policy-mobile-card > .policy-expiry,
  .policy-mobile-card > .policy-secondary {
    grid-column: 1/-1;
  }
  .policy-mobile-card > .policy-expiry {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .customer-compact-summary > dl {
    grid-template-columns: 1fr 1fr;
  }
  .template-controls {
    grid-template-columns: 1fr;
  }
  .template-controls .button {
    width: 100%;
    min-height: 44px;
  }
  .message-envelope div {
    grid-template-columns: 82px 1fr;
  }
  .header-editor[open] > .form-panel,
  .add-policy-inline[open] > .form-panel {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: 85dvh;
    overflow: auto;
    border-radius: 14px 14px 0 0;
    z-index: 75;
  }
  .eligibility-lines {
    display: grid;
    gap: 0.65rem;
  }
  .dashboard-secondary {
    display: grid;
    gap: 0.75rem;
  }
}

/* Mobile-first name lists and dedicated details */
.list-search-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.list-search-row .search {
  flex: 1;
}
.policy-filter-icon {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
}
.policy-filter-icon:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.policy-filter-icon:focus-visible,
.policy-filter-icon[data-active="true"] {
  border-color: var(--accent);
}
.policy-filter-icon[data-active="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.policy-filter-icon > span {
  position: absolute;
  right: -4px;
  top: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
}
.list-count {
  margin: 0.2rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.name-list-panel {
  padding: 0.15rem 1rem;
}
.name-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.name-list li + li {
  border-top: 1px solid var(--line);
}
.name-list a {
  min-height: 56px;
  padding: 0.75rem 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
}
.name-list a > span {
  font-size: 1.3rem;
  color: var(--muted);
}
.name-list strong small {
  font-weight: 500;
  color: var(--muted);
}
.compact-page-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.overflow-menu {
  position: relative;
}
.overflow-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
}
.overflow-menu summary::-webkit-details-marker {
  display: none;
}
.overflow-menu > a {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  min-width: 150px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}
.detail-summary {
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-block: 1px solid var(--line);
}
.detail-summary > dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.detail-summary dl div {
  display: grid;
  gap: 0.25rem;
}
.detail-summary dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.detail-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-summary dd small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}
.customer-policy-list {
  margin-bottom: 1rem;
}
.detail-section {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.detail-section h2 {
  font-size: 1rem;
  margin: 0 0 0.8rem;
}
.detail-primary-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.policy-management details {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.policy-management summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}
.policy-management .form-panel {
  max-width: 620px;
  padding: 1rem 0;
}
.overview-actions {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.filter-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}
.filter-dialog footer > * {
  min-width: 110px;
}
@media (max-width: 700px) {
  .detail-summary > dl {
    grid-template-columns: 1fr 1fr;
  }
  .detail-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .detail-primary-actions .button {
    white-space: normal;
  }
  .page-header .compact-add {
    width: auto;
    flex: 0 1 auto;
  }
  .name-list-panel {
    padding: 0.1rem 0.85rem;
  }
}

.permission-confirmation {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.permission-confirmation p,
.permission-confirmation small {
  margin: 0;
}
.permission-confirmation small {
  color: var(--muted);
  line-height: 1.4;
}
.more-options {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.more-options > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
.more-options > div {
  display: grid;
  gap: 1rem;
  padding-top: 0.75rem;
}

/* Customer import entry and guided CSV flow */
.list-meta-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 8px;
}
.record-list-page .list-meta-row .list-count {
  margin: 0;
}
.record-list-page .list-meta-row {
  min-height: 44px;
}
.import-csv-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
.csv-import-page {
  width: min(100%, 820px);
}
.import-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: steps;
}
.import-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
}
.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}
.step-content {
  min-width: 0;
}
.step-content h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.08rem;
}
.step-content > p {
  margin: 0.25rem 0 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.template-download {
  width: max-content;
  min-height: 44px;
    margin: 0.15rem 0 0.35rem;
}
.step-content details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-content details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
  .step-content details > p { margin:0.2rem 0 0.8rem; color:var(--muted); line-height:1.5; }
.column-guide {
  margin: 0;
  padding: 0 0 0.75rem;
}
.column-guide div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 0.7rem;
  padding: 0.4rem 0;
}
.column-guide dt,
.column-guide dd {
  margin: 0;
}
.column-guide dd {
  color: var(--muted);
}
.import-note {
  margin-top: 0.8rem !important;
  color: var(--ink) !important;
}
.csv-upload-form {
  display: grid;
  gap: 0.7rem;
}
.file-picker {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
  .file-picker:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.selected-file {
  margin: 0 !important;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
.csv-upload-form .button {
  width: max-content;
}
.import-step:not(.active):last-child {
  background: var(--surface-2);
}
.import-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.75rem 0;
}
.import-summary span {
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}
.import-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}
.import-preview-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  border-block: 1px solid var(--line);
}
.import-preview-list li {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.import-preview-list li:last-child {
  border: 0;
}
.import-preview-list li span {
  color: var(--muted);
  font-size: 0.82rem;
}
.import-preview-list li span:last-child {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.import-confirm-form {
  display: grid;
  gap: 1rem;
}
.import-confirm-form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.45;
}
.import-confirm-form .check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.import-confirm-form .button {
  width: max-content;
}
.pwa-guidance {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.pwa-guidance h2 {
  font-size: 1rem;
  margin: 0;
}
.pwa-guidance p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.pwa-guidance .button {
  grid-column: 2;
  width: max-content;
  min-height: 44px;
}

@media (max-width: 600px) {
  .csv-import-page .page-header {
    display: flex;
    align-items: flex-start;
  }
  .import-step {
    padding: 0.85rem;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.6rem;
  }
  .column-guide div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .template-download,
  .csv-upload-form .button,
  .import-confirm-form .button {
    width: 100%;
  }
  .import-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .import-summary span {
    padding: 0.55rem 0.4rem;
  }
  .import-preview-list li {
    grid-template-columns: minmax(0, 1fr);
  }
  .import-preview-list li span:last-child {
    grid-column: 1;
    grid-row: auto;
  }
  .list-meta-row {
    margin-top: -2px;
  }
}
.customer-picker {
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  margin-bottom: 1rem;
}
.customer-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #aaa9a5;
  border-radius: 6px;
  padding: 0 0.7rem;
  min-height: 44px;
}
.customer-search input {
  border: 0 !important;
  padding: 0.5rem !important;
  min-width: 0;
}
.customer-options {
  display: grid;
  max-height: 180px;
  overflow: auto;
}
.customer-options button,
.selected-customer {
  min-height: 44px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.6rem;
  cursor: pointer;
  font: inherit;
}
.selected-customer {
  display: flex;
  justify-content: space-between;
  background: var(--accent-soft);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}
.selected-customer span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.new-customer-button {
  width: 100%;
  min-height: 44px;
}
.activity-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 1rem;
}
.activity-toolbar .search {
  height: 44px;
  min-height: 44px;
  width: 100%;
}
.activity-toolbar .icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  position: relative;
}
.activity-toolbar .icon-button span {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}
.filter-dialog form {
  display: grid;
  gap: 1rem;
}
.filter-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}
.filter-dialog footer > * {
  min-height: 44px;
}
.customer-detail-page .page-header h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.customer-editor-shell .mobile-nav,
.customer-editor-shell .mobile-product-header {
  display: none;
}
.customer-edit-page {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.editor-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.editor-nav h1 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}
.editor-nav-cancel,
.editor-nav-save {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
}
.editor-nav-cancel {
  justify-self: start;
  color: var(--muted);
}
.editor-nav-save {
  justify-self: end;
  color: var(--accent-dark);
}
.editor-nav-save:disabled {
  opacity: 0.55;
  cursor: wait;
}
.customer-edit-form {
  display: grid;
  gap: 16px;
}
.customer-edit-form > label,
.customer-edit-form fieldset label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}
.customer-edit-form input,
.customer-edit-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #aaa9a5;
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
}
.customer-edit-form fieldset {
  display: grid;
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.customer-edit-form legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-bottom: -6px;
}
.customer-edit-form .permission-confirmation,
.customer-edit-form .flash {
  margin: 0;
}
.customer-detail-profile {
  display: grid;
  gap: 16px;
}
.customer-facts {
  margin: 0;
}
.customer-facts > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
}
.customer-facts dt {
  font-size: 13px;
  color: var(--muted);
}
.customer-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.customer-policies {
  margin: 16px 0 1rem;
  border-top: 1px solid var(--line);
}
.customer-policies > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.customer-policies > header h2 {
  margin: 0;
  font-size: 1rem;
}
.customer-policies .name-list {
  border-top: 0;
}
.customer-policies .name-list a {
  min-height: 48px;
  padding: 0.35rem 0;
  font-size: 14px;
  font-weight: 600;
}
.header-editor {
  display: block;
  margin: 0;
}
.header-editor > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.header-editor > summary::-webkit-details-marker {
  display: none;
}
.header-editor[open] > .form-panel {
  position: static;
  width: auto;
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0;
}
.eligibility-lines {
  display: grid;
  gap: 0;
  padding: 0;
}
.eligibility-lines p {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0.55rem 0;
  font-size: 14px;
}
.eligibility-lines p + p {
  border-top: 0;
}
.eligibility-lines strong {
  font-size: 13px;
  color: var(--muted);
}
.pwa-install-row {
  border-top: 1px solid var(--line);
}
.pwa-install-row > button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pwa-install-row > button span:nth-child(2) {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}
.pwa-install-row > button > span:last-child {
  display: none;
}
.pwa-install-row > p {
  display: block;
  margin: 0;
  padding: 0 0.9rem 0.75rem calc(0.9rem + 20px + 12px);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.form-panel label.check,
.form-panel label.consent-row,
.form-panel label.check.consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  line-height: 1.4;
}
.form-panel label.check input[type="checkbox"],
.form-panel label.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
}
.form-panel label.check span,
.form-panel label.consent-row span {
  margin: 0;
  line-height: 1.4;
}

.form-panel label.policy-active-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.form-panel label.policy-active-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.form-panel label.policy-active-row span {
  margin: 0;
  line-height: 20px;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.marketing-brand img {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
}
.marketing footer .marketing-brand img {
  height: 30px;
}
@media (max-width: 600px) {
  .marketing-nav .marketing-brand img {
    height: 30px;
  }
  .marketing footer .marketing-brand img {
    height: 28px;
  }
}

.name-list.policy-number-list > li {
  display: block;
  padding: 0;
  border-bottom: 0;
}
.name-list.policy-number-list > li > a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.name-list.policy-number-list > li > a > strong {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.policy-list-expiry {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

/* Settings follows the compact detail/billing rhythm: summaries first, editors on demand. */
.settings-page {
  width: min(100%, 860px);
}
.settings-sections {
  border-top: 1px solid var(--line);
}
.settings-section {
  border-bottom: 1px solid var(--line);
}
.settings-section > summary {
  min-height: 64px;
  padding: 14px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.settings-section > summary::-webkit-details-marker {
  display: none;
}
.settings-section > summary > div {
  min-width: 0;
  flex: 1;
}
.settings-section > summary > span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding-top: 2px;
}
.settings-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
}
.settings-summary {
  margin: 0;
  display: grid;
  gap: 7px;
}
.settings-summary > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.settings-summary dt {
  font-size: 13px;
  color: var(--muted);
}
.settings-summary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.settings-editor {
  display: grid;
  gap: 12px;
  padding: 4px 4px 16px;
  max-width: 620px;
}
.settings-editor > label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.settings-editor input,
.settings-editor select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #aaa9a5;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.75rem;
}
.settings-editor input[readonly] {
  color: var(--muted);
  background: var(--surface-2);
}
.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.policy-reminder-fields {
  margin: 0;
}
.policy-purpose-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.policy-purpose-options label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.policy-purpose-options input {
  width: auto;
  margin: 0;
}
.conditional-policy-fields {
  display: grid;
  gap: 12px;
}
.conditional-policy-fields > label {
  display: grid;
  gap: 5px;
}
.currency-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #aaa9a5;
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.currency-input > span {
  padding: 0 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}
.form-panel .currency-input input,
.settings-editor .currency-input input {
  border: 0;
  border-radius: 0;
}
.settings-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-checks {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.settings-checks legend {
  padding: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
}
.settings-checks label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
}
.settings-checks input {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  padding: 0;
}
.settings-inline-action {
  padding: 0 4px 16px;
}
.settings-inline-action button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.settings-reset {
  width: max-content;
}
.settings-editor .session-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.settings-editor .session-list li {
  min-height: 56px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.settings-editor .session-list li > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.settings-editor .session-list strong {
  font-size: 14px;
}
.settings-editor .session-list small {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Billing plan selection */
.billing-page {
  width: min(100%, 1040px);
}
.billing-current {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.billing-current > div {
  display: grid;
  gap: 4px;
}
.billing-current span {
  font-size: 13px;
  color: var(--muted);
}
.billing-current strong {
  font-size: 16px;
  text-transform: capitalize;
}
.billing-current-amount { color: var(--muted); font-size: 12px; line-height: 1.4; }
.billing-current .text-link {
  color: var(--accent-dark);
}
.billing-chooser > header {
  margin-bottom: 18px;
}
.billing-chooser h2 {
  margin: 0 0 5px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.billing-chooser > header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.billing-promotion { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: -2px 0 18px; padding: 12px 16px; border: 1px solid #edc8bc; border-radius: var(--radius); background: #fff7f2; color: var(--ink); font-size: 14px; line-height: 1.4; }
.billing-promotion strong { color: var(--accent-dark); }
.billing-promotion-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.billing-plan-form {
  display: grid;
  gap: 18px;
}
.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.billing-plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.billing-plan-card:hover {
  border-color: #aaa9a5;
}
.billing-plan-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing-plan-card.is-selected {
  border: 2px solid var(--accent);
  padding: 19px;
}
.billing-plan-card.is-current {
  background: var(--surface-2);
}
.billing-plan-card input {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.billing-plan-card-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 26px;
}
.billing-plan-card-head > strong {
  font-size: 16px;
}
.billing-plan-card-head small {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
}
.billing-discount-badge { padding: 3px 6px; border-radius: 4px; background: #f9e6df; color: var(--accent-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.billing-original-price { min-height: 18px; color: var(--muted); font-size: 14px; line-height: 18px; text-decoration-line: line-through; text-decoration-thickness: 1px; }
.billing-original-price.is-placeholder { visibility: hidden; }
.billing-plan-price {
  display: flex;
  align-items: baseline;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.billing-plan-price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.billing-plan-allowance {
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
}
.billing-plan-saving { color: var(--accent-dark); font-size: 13px; font-weight: 700; line-height: 1.35; }
.marketing-tool .rk-tools { min-height: calc(100vh - 220px); padding-left: 4vw; padding-right: 4vw; }
.billing-continue {
  width: 100%;
  min-height: 48px;
}
.billing-continue:disabled {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}
.billing-policy-picker {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.billing-policy-picker legend {
  padding: 0 5px;
  font-weight: 700;
}
.billing-policy-picker > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.billing-policy-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.billing-policy-picker input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
}
.billing-details {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.billing-details > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.billing-details > summary::-webkit-details-marker {
  display: none;
}
.billing-details[open] > summary svg {
  transform: rotate(180deg);
}
.billing-details dl {
  margin: 0;
}
.billing-details dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.billing-details dt {
  color: var(--muted);
  font-size: 13px;
}
.billing-details dd {
  margin: 0;
  font-size: 14px;
}
.billing-cancel-form {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.billing-meta-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 18px 0;
  color: var(--muted);
}
.billing-meta-note svg {
  flex: 0 0 18px;
  color: var(--good);
}
.billing-meta-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.billing-page .mock-banner {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.needs-attention > div:first-child {
  display: grid;
  gap: 3px;
}
.needs-attention > div:first-child span {
  color: var(--muted);
  font-size: 13px;
}
.needs-attention-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
}
.needs-attention-links a {
  font-size: 13px;
  font-weight: 600;
}
.renewal-state {
  display: block !important;
  color: var(--muted);
  font-size: 12px !important;
}
.renewal-state-needs-attention {
  color: var(--bad) !important;
}
.renewal-state-scheduled {
  color: var(--good) !important;
}
.renewal-state-sent {
  color: var(--accent-dark) !important;
}
.renewal-state-setup-required {
  color: var(--warn) !important;
}
.reminder-list-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reminder-activity-page .activity-toolbar {
  margin-bottom: 8px;
}
.reminder-activity-page .reminder-list-panel {
  margin: 0;
}
.reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reminder-list li + li {
  border-top: 1px solid var(--line);
}
.reminder-row {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reminder-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.reminder-row .status {
  flex-shrink: 0;
}
.reminder-detail-dialog {
  max-height: min(90dvh, 640px);
  overflow: auto;
}
.reminder-detail-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}
.reminder-detail-facts div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.reminder-detail-facts dt {
  color: var(--muted);
  font-size: 13px;
}
.reminder-detail-facts dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.reminder-readiness-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.reminder-readiness-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.reminder-readiness-list strong {
  font-size: 14px;
}
.reminder-readiness-list .status {
  justify-self: end;
}
.reminder-readiness-list small {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}
.reminder-readiness-list a {
  grid-column: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}
@media (max-width: 600px) {
  .billing-page {
    width: 100%;
  }
  .billing-page .page-header {
    margin-bottom: 14px;
  }
  .billing-current {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px;
    margin-bottom: 28px;
  }
  .billing-current > div:nth-child(2) {
    grid-column: 1;
  }
  .billing-current .text-link {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .billing-plan-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .billing-plan-card {
    min-height: 150px;
    padding: 16px;
  }
  .billing-plan-card.is-selected {
    padding: 15px;
  }
  .billing-plan-card input {
    top: 16px;
    right: 16px;
  }
  .billing-plan-price {
    font-size: 1.9rem;
  }
  .billing-details dl > div {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .billing-policy-picker {
    padding: 12px;
  }
  .billing-cancel-form .button {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 64px;
    padding: 6px env(safe-area-inset-right)
      calc(6px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
  .mobile-nav .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    appearance: none;
    color: var(--muted);
    font: inherit;
    font-size: 10px;
    line-height: 12px;
    text-align: center;
    text-decoration: none;
  }
  .mobile-nav .mobile-nav-item svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .mobile-nav .mobile-nav-item span {
    font-size: 10px;
    line-height: 12px;
  }
  .mobile-nav .mobile-nav-item.active {
    color: var(--accent);
  }
}

/* Policy facts need the same label/value hierarchy on tablet and desktop. */
@media (min-width: 601px) {
  .policy-detail-page { width:100%; max-width:820px; }
  .policy-detail-page .page-header > div:first-child { display:flex; flex-direction:column; gap:6px; min-width:0; }
  .policy-detail-page .page-header h1 { order:0; margin:0; font-size:28px; overflow-wrap:anywhere; }
  .policy-detail-page .page-header .page-kicker { order:1; margin:0; }
  .policy-detail-page .policy-facts { display:grid; gap:0; margin:0 0 20px; }
  .policy-detail-page .policy-facts > div { display:grid; grid-template-columns:160px minmax(0,1fr); gap:20px; align-items:baseline; padding:10px 0; }
  .policy-detail-page .policy-facts dt { color:var(--muted); font-size:14px; line-height:1.5; }
  .policy-detail-page .policy-facts dd { margin:0; font-size:14px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; }
  .policy-detail-page .policy-editor { padding:16px 0; }
  .policy-detail-page .policy-editor summary { cursor:pointer; font-size:14px; font-weight:600; }
  .policy-detail-page .policy-editor[open] .settings-editor { margin-top:20px; }
  .policy-detail-page .reminder-readiness { padding:20px 0; }
}

.settings-desktop-logout { margin-top:12px; }
.settings-desktop-logout button { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px 12px; border:0; border-radius:var(--radius); background:transparent; color:var(--bad); font:inherit; font-size:14px; cursor:pointer; text-align:left; }
.settings-desktop-logout button:hover { background:var(--bad-soft); }
.settings-desktop-logout button:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }

@media(max-width:900px){ .settings-desktop-logout { display:none; } }

.marketing footer .business-identity { flex: 1; }
.marketing footer .business-identity p { margin: 0.5rem 0; font-size: 0.875rem; line-height: 1.6; }

/* Platform admin: shared app surfaces, coral charts and restrained card spacing. */
.admin-page{max-width:1200px;margin:0 auto;padding-bottom:24px}.admin-page .page-header{margin-bottom:20px}.admin-page h2{font-size:17px;letter-spacing:-.025em;margin:0}.admin-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.admin-environment{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;text-transform:capitalize}.admin-context form{display:flex;gap:10px;align-items:center}.admin-context label{font-size:12px;color:var(--muted);margin:0}.admin-context select{width:auto;min-width:145px;margin:0;background:var(--surface);border-radius:8px;font-size:13px;padding:8px 12px;min-height:38px}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-metric{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:20px}.admin-metric>div{display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--muted);font-size:12px}.admin-metric svg{color:var(--accent)}.admin-metric>strong{display:block;font-size:36px;letter-spacing:-.055em;line-height:1.3;margin:13px 0 5px;font-variant-numeric:tabular-nums}.admin-metric>small{font-size:11px;color:var(--muted)}.admin-data-note{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0 24px}.admin-charts{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}.admin-page .panel{border-radius:12px;margin-bottom:20px;padding:22px}.admin-chart-card header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.admin-chart-card header p,.admin-settings header p,.admin-tracking p{font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0 0}.admin-mini-total{color:var(--accent);font-size:23px;font-weight:600;letter-spacing:-.04em}.admin-chart{height:230px;margin-top:20px;width:100%;min-width:0}.admin-chart-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:12px}.admin-chart-empty strong{font-size:15px;color:var(--ink)}.admin-chart-data{font-size:11px;color:var(--muted);margin-top:12px}.admin-data-list{max-height:140px;overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.admin-data-list span{display:flex;justify-content:space-between;gap:8px;padding:4px}.admin-plan-visual{padding:12px 0 0}.admin-donut{position:relative;width:190px;height:190px;margin:0 auto}.admin-donut-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;gap:2px}.admin-donut-label strong{font-size:31px;letter-spacing:-.05em}.admin-donut-label span{font-size:11px;color:var(--muted)}.admin-donut-empty{border:18px solid var(--surface-2);border-radius:50%;position:absolute;inset:8px}.admin-plan-legend{display:grid;gap:10px;margin-top:8px}.admin-plan-legend>div{display:flex;align-items:center;gap:8px;font-size:12px}.admin-plan-legend i{width:8px;height:8px;border-radius:3px}.admin-plan-legend strong{margin-left:auto}.admin-plan-legend small{width:34px;text-align:right;color:var(--muted)}.admin-health{display:flex;gap:24px;align-items:center;padding:0 2px 22px;font-size:12px;color:var(--muted)}.admin-health strong{color:var(--ink)}.admin-health small{margin-left:auto;font-size:10px}.admin-health .admin-attention strong{color:var(--accent)}.admin-accounts header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.admin-accounts header span{font-size:11px;color:var(--muted)}.admin-accounts table{width:100%;border-collapse:collapse;font-size:12px}.admin-accounts th{font-size:11px;font-weight:500;color:var(--muted);text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}.admin-accounts td{padding:14px 8px;border-bottom:1px solid var(--line)}.admin-accounts tr:last-child td{border-bottom:0}.admin-accounts td strong{font-weight:500}.admin-accounts td small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.admin-plan-pill{display:inline-flex;font-size:11px;text-transform:capitalize;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:4px 8px;white-space:nowrap}.admin-empty{padding:35px 10px;text-align:center;color:var(--muted);font-size:13px}.admin-settings{scroll-margin-top:24px}.admin-settings header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.admin-settings header .page-kicker{margin:0 0 8px;color:var(--accent)}.admin-revision{font-size:10px;color:var(--muted);white-space:nowrap}.admin-plan-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.admin-plan-settings fieldset{border:1px solid var(--line);border-radius:10px;padding:16px;margin:0;min-width:0}.admin-plan-settings legend{font-size:13px;font-weight:600;padding:0 5px}.admin-plan-settings label{font-size:11px;color:var(--muted);display:block;margin:0 0 16px}.admin-plan-settings label:last-child{margin-bottom:0}.admin-plan-settings input{width:100%;margin-top:7px;border-radius:7px;background:var(--surface);font-size:15px;padding:10px 12px;min-height:42px}.admin-plan-settings input[readonly]{color:var(--muted);background:var(--surface-2)}.admin-unlimited{font-size:12px;color:var(--muted);margin:26px 0 0}.admin-save-row{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-top:20px}.admin-save-row p{max-width:620px;font-size:11px;line-height:1.7;color:var(--muted);margin:0}.admin-save-row button{white-space:nowrap}.admin-tracking{display:flex;gap:24px;align-items:center;justify-content:space-between}.admin-bottom{display:flex;gap:10px;justify-content:space-between;font-size:11px;color:var(--muted)}.admin-bottom a{display:flex;align-items:center;gap:4px}.admin-issue-list>div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.admin-issue-list small{display:block;margin-top:4px;color:var(--muted)}.admin-issue-list code{font-size:11px;color:var(--accent);overflow-wrap:anywhere;max-width:50%}
@media(max-width:1000px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-charts{grid-template-columns:1fr}.admin-plan-visual{display:flex;align-items:center;gap:28px}.admin-plan-legend{flex:1}.admin-donut{flex:0 0 190px}.admin-plan-settings{gap:10px}}
@media(max-width:600px){.admin-page .page-header h1{font-size:25px}.admin-page .page-header .button{font-size:11px;padding:9px 11px;min-height:38px}.admin-context{gap:8px}.admin-context form{gap:6px}.admin-context select{min-width:122px;font-size:12px}.admin-context label{display:none}.admin-metrics{gap:10px}.admin-metric{padding:15px 13px}.admin-metric>div{font-size:11px}.admin-metric>strong{font-size:30px;margin:10px 0 3px}.admin-metric>small{font-size:10px}.admin-page .panel{padding:17px}.admin-health{flex-wrap:wrap;gap:12px}.admin-health small{width:100%;margin:0}.admin-plan-settings{grid-template-columns:1fr;gap:16px}.admin-plan-visual{gap:12px}.admin-donut{width:150px;height:150px;flex-basis:150px}.admin-donut-label strong{font-size:26px}.admin-save-row{flex-direction:column;align-items:stretch;gap:14px}.admin-tracking{align-items:flex-start;gap:12px}.admin-tracking .admin-plan-pill{font-size:9px}.admin-chart{height:210px}.admin-bottom{flex-wrap:wrap}.admin-accounts table{min-width:480px}}

/* Record actions stay secondary; confirmation follows the existing dialog style. */
.record-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.record-actions .customer-edit-link { flex:1 1 auto; }
.record-delete-trigger { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:0; background:transparent; padding:8px 10px; color:var(--bad); font:inherit; font-size:13px; cursor:pointer; border-radius:var(--radius); }
.record-delete-trigger:hover { background:var(--bad-soft); }
.record-delete-trigger:focus-visible,.reminder-toggle:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
.policy-delete-action { border-top:1px solid var(--line); padding-top:8px; margin-top:16px; justify-content:flex-end; }
.record-delete-dialog { max-width:420px; }
.record-delete-description { margin:12px 0 20px; color:var(--muted); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.record-delete-description strong { font-weight:500; color:var(--ink); }
.record-delete-confirm { background:var(--bad); border-color:var(--bad); }
.record-delete-confirm:hover { background:#921d14; border-color:#921d14; }
.settings-subpage-form > .reminder-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); padding-bottom:20px; cursor:pointer; }
.reminder-toggle-row > span { display:grid; gap:5px; }
.reminder-toggle-row strong { font-size:14px; font-weight:600; }
.reminder-toggle-row small { font-size:13px; line-height:1.5; color:var(--muted); font-weight:400; }
.settings-subpage-form input.reminder-toggle { appearance:none; flex:0 0 42px; width:42px; height:24px; min-height:24px; padding:3px; margin:0; border:0; border-radius:999px; background:var(--line); cursor:pointer; }
.reminder-toggle::before { content:""; display:block; width:18px; height:18px; border-radius:50%; background:var(--surface); }
.settings-subpage-form input.reminder-toggle:checked { background:var(--accent); }
.reminder-toggle:checked::before { transform:translateX(18px); }
.reminder-options { display:grid; gap:20px; min-width:0; }
.reminder-options[hidden] { display:none; }
.reminder-options > label { display:grid; gap:8px; }
.reminder-options .settings-note,.reminder-off-note { margin:0; font-size:13px; line-height:1.6; color:var(--muted); }
.email-delivery-section { display:grid; gap:8px; min-width:0; margin:0 0 22px; padding:0 0 20px; border-bottom:1px solid var(--line); }
.email-delivery-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.email-delivery-heading h2 { margin:0; font-size:17px; }
.email-delivery-status { padding:4px 8px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-size:12px; font-weight:600; }
.email-delivery-status[data-state="available"] { background:#e9f4ec; color:#247143; }
.email-delivery-section p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.email-delivery-section .email-delivery-saved { color:var(--ink); }
.email-delivery-section > a { justify-self:start; font-size:13px; }
.email-delivery-local-tools { margin-top:3px; font-size:13px; }
.email-delivery-local-tools summary { cursor:pointer; }
.email-delivery-local-tools > p,.email-delivery-local-tools form { margin-top:10px; }
.email-delivery-local-tools form { display:grid; justify-items:start; gap:10px; }
.email-delivery-local-tools label { display:grid; gap:6px; width:min(100%,320px); }
@media(max-width:600px) { .record-delete-dialog { max-width:100%; } .record-actions .customer-edit-link { flex:1 1 160px; } }

.customer-record-actions { display:grid; gap:4px; }
.customer-record-actions .record-delete-trigger { justify-self:center; }
.customer-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.customer-detail-heading .page-header { min-width:0; margin:0; }
.customer-detail-heading .page-header h1 { overflow-wrap:anywhere; }
.customer-actions-menu { position:relative; flex:none; }
.customer-actions-menu > summary { list-style:none; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:8px; background:var(--surface); cursor:pointer; }
.customer-actions-menu > summary::-webkit-details-marker { display:none; }
.customer-actions-menu > summary:focus-visible,.customer-actions-popover a:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.customer-actions-popover { position:absolute; z-index:30; top:calc(100% + 6px); right:0; width:190px; padding:6px; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:0 12px 28px #0002; }
.customer-actions-popover a,.customer-actions-popover .record-delete-trigger { display:flex; align-items:center; width:100%; min-height:42px; padding:9px 12px; border-radius:6px; font-size:14px; text-align:left; text-decoration:none; }
.customer-actions-popover a { color:var(--ink); }
.customer-actions-popover a:hover { background:var(--surface-muted,#f5f3ef); }
.customer-actions-danger { border-top:1px solid var(--line); padding-top:5px; margin-top:5px; }
.customer-contact-block h2,.customer-details-block h2 { margin:0 0 8px; font-size:15px; }
.customer-contact-block .customer-facts a { color:var(--ink); text-decoration:underline; text-underline-offset:2px; }
.customer-notes { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.customer-details-block { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.customer-email-status { margin:12px 0 0; font-size:13px; color:var(--muted); }
.customer-email-status.eligibility-lines { display:block; }
.customer-email-status.eligibility-lines p { flex-wrap:wrap; }
.customer-mock-note { margin:0; padding:9px 11px; font-size:12px; }
.customer-policy-expiry { font-size:12px !important; color:var(--muted); text-align:right; }

/* English public information pages share the product's paper and coral palette. */
.public-page-nav,.public-page-footer { max-width:1200px; margin:auto; padding:24px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.public-page-nav { border-bottom:1px solid var(--line); }
.public-page-nav nav,.public-page-footer nav { display:flex; flex-wrap:wrap; gap:20px; font-size:14px; }
.public-page-nav nav a,.public-page-footer nav a { color:var(--muted); text-decoration:none; }
.public-content { max-width:850px; margin:0 auto; padding:40px 24px 64px; }
.public-content h1 { font-size:clamp(30px,5vw,48px); line-height:1.15; letter-spacing:-.04em; margin:24px 0; }
.public-lede { font-size:18px; color:var(--muted); line-height:1.7; }
.public-content section { margin:36px 0; }
.public-content h2 { font-size:23px; line-height:1.3; letter-spacing:-.025em; }
.public-content p,.public-content li { line-height:1.75; }
.public-content li { margin:8px 0; }
.public-breadcrumb { font-size:13px; color:var(--muted); }
.public-related { margin-top:48px; border-top:1px solid var(--line); padding-top:20px; }
.public-page-footer { border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
.public-home-links { padding:40px 4vw 64px; }
.public-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:28px 0; }
.public-link-grid article { border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--surface); min-width:0; }
.public-link-grid h2,.public-link-grid h3 { font-size:19px; margin:0 0 12px; line-height:1.4; }
.public-link-grid p { color:var(--muted); line-height:1.65; }
.public-link-grid a { color:var(--ink); text-decoration:none; }
.public-link-grid a:hover { text-decoration:underline; }
.public-price { font-size:25px; font-weight:600; color:var(--ink)!important; }
@media(max-width:700px){.public-link-grid{grid-template-columns:1fr}.public-page-nav,.public-page-footer{padding:20px}.public-page-nav nav{gap:14px}.public-content{padding:24px 20px 40px}}

.marketing .hero h1 { font-size:clamp(36px,4.2vw,60px); line-height:1.08; overflow-wrap:normal; word-break:normal; }

.password-field{position:relative;display:block;width:100%}.password-field input{padding-right:48px;width:100%}.password-field .password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--muted,#64748b)}.password-toggle:focus-visible{outline:2px solid #df5b48;outline-offset:-3px;border-radius:6px}

@media (min-width: 901px) {
  .customer-detail-page { max-width:1040px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start; }
  .customer-detail-page > .customer-detail-heading, .customer-detail-page > .flash { margin:0; }
  .customer-profile-block, .customer-detail-page .customer-policies { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
  .customer-detail-page .customer-mock-note { grid-column:1/-1; grid-row:2; }
  .customer-detail-page .customer-facts > div { grid-template-columns:100px minmax(0,1fr); padding:10px 0; }
  .customer-detail-page .eligibility-lines { padding-top:8px; border-top:1px solid var(--line); }
  .customer-detail-page .eligibility-lines p { margin:0; }
  .customer-detail-page .customer-policies { margin:0; }
  .customer-detail-page .customer-policies > header { gap:16px; min-height:44px; padding-bottom:18px; border-bottom:1px solid var(--line); }
  .customer-detail-page .customer-policies .name-list { margin:8px 0 0; }
  .customer-detail-page .customer-policies .name-list a { padding:16px 0; min-height:56px; }
  .customer-detail-page .customer-policies .compact-empty { padding:32px 0 16px; }
}

.policy-detail-panel { display:contents; }
.policy-detail-heading { margin-bottom:6px; }
.policy-detail-page .policy-contact-facts { margin-bottom:0; }
.policy-detail-page .policy-contact-facts a { color:var(--ink); text-decoration:underline; text-underline-offset:2px; }
.policy-preview-button { background:var(--accent); border-color:var(--accent); color:#fff; }
.policy-preview-button:hover { background:#bf4937; border-color:#bf4937; color:#fff; }
.policy-whatsapp-button { background:#128c4b; border-color:#128c4b; color:#fff; }
.policy-whatsapp-button:hover { background:#0b713b; border-color:#0b713b; color:#fff; }
.policy-renew-button { width:100%; justify-content:center; background:#e35b49; border-color:#e35b49; color:#fff; }
.policy-renew-button:hover { background:#c84d3d; border-color:#c84d3d; color:#fff; }
.policy-close-link { justify-self:center; border:0; background:transparent; color:var(--muted); text-decoration:underline; cursor:pointer; padding:6px 12px; font:inherit; }
.policy-reopen-button { width:100%; justify-content:center; }
.policy-customer-contact > form { width:100%; }
.policy-closed-status { margin:0; padding:12px 14px; border:1px solid var(--line); border-radius:9px; background:var(--surface); font-weight:650; }
.policy-lifecycle-dialog { width:min(460px,calc(100vw - 32px)); }
.policy-lifecycle-dialog form { display:grid; gap:14px; }
.policy-lifecycle-dialog label { display:grid; gap:6px; }
.policy-lifecycle-dialog input,.policy-lifecycle-dialog select { width:100%; min-width:0; }
.policy-lifecycle-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.policy-lifecycle-actions .policy-renew-button { width:auto; }
.policy-expiry-history { margin:12px 0 0; padding-left:22px; color:var(--muted); }
.policy-detail-page { display:flex !important; flex-direction:column; gap:12px !important; width:100%; max-width:720px !important; margin:0 auto; }
.policy-detail-page > .policy-detail-heading { margin:0; }
.policy-detail-reference { margin:0; color:var(--muted); font-size:13px; }
.policy-expiry-alert { display:flex; justify-content:space-between; gap:12px; margin:2px 0 4px; padding:12px 14px; border:1px solid var(--line); border-radius:9px; background:var(--surface); font-weight:650; }
.policy-expiry-alert.is-soon { color:#b83e2f; border-color:#edc2b8; background:#fff4f0; }
.policy-expiry-alert span { color:var(--muted); font-size:12px; font-weight:400; text-align:right; }
.policy-customer-contact { display:grid; gap:10px; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.policy-customer-link { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; min-width:0; }
.policy-customer-link > span:nth-child(2) { display:grid; gap:3px; min-width:0; }
.policy-customer-link strong,.policy-customer-link small { overflow-wrap:anywhere; }
.policy-customer-link small { color:var(--muted); }
.policy-contact-avatar { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:50%; background:#fbe6df; color:#b83e2f; font-weight:700; }
.policy-contact-chevron { margin-left:auto; font-size:25px; color:var(--muted); }
.policy-customer-contact > .button { width:100%; justify-content:center; }
.policy-whatsapp-secondary { background:#fff; color:#128c4b; }
.policy-whatsapp-secondary:hover { background:#e9f7ee; color:#0b713b; }
.policy-detail-page > .policy-information-panel { display:block; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.policy-information-panel h2 { margin:0 0 8px; font-size:16px; }
.policy-detail-page .policy-other-facts { border:0; padding:0; margin:0; }
.policy-detail-page .policy-facts > div { grid-template-columns:110px minmax(0,1fr); gap:12px; padding:7px 0; }
.policy-more-information { margin-top:10px; padding-top:12px; border-top:1px solid var(--line); }
.policy-more-information summary { cursor:pointer; font-size:13px; font-weight:600; }
.policy-more-information .policy-facts { margin-top:8px; }
.policy-opt-out-note { margin:0; padding:11px 14px; border-radius:8px; background:#fff4f0; color:#b83e2f; font-size:13px; }
.policy-preview-action { width:100%; justify-content:center; }
@media (max-width:900px) {
  .policy-detail-page { display:grid; gap:0; }
  .policy-detail-heading { order:0; }
  .policy-contact-facts { order:1; }
  .policy-reminder-panel > .reminder-readiness { order:2; }
  .policy-reminder-panel > .mobile-reminder-preview-action { order:3; }
  .policy-other-facts { order:4; margin-top:20px !important; padding-top:12px; border-top:1px solid var(--line); }
  .policy-detail-page .policy-facts { display:grid; margin-bottom:0; }
  .policy-detail-page .policy-facts > div { display:grid; grid-template-columns:82px minmax(0,1fr); gap:10px; align-items:baseline; padding:9px 0; }
  .policy-detail-page .reminder-readiness { padding:16px 0 4px; border-top:1px solid var(--line); }
  .policy-detail-page .mobile-reminder-preview-action { display:grid; grid-template-columns:1fr; gap:8px; margin:14px 0 0; }
  .policy-detail-page .mobile-reminder-preview-action .button { width:100%; justify-content:center; }
}
@media (min-width:901px) {
  .policy-detail-page { width:100%; max-width:1040px; margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
  .policy-detail-page > .policy-detail-heading { grid-column:1/-1; margin:0; }
  .policy-detail-page .policy-detail-panel { display:block; padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:12px; min-width:0; }
  .policy-detail-page .policy-facts { margin:0; }
  .policy-detail-page .policy-other-facts { border-top:1px solid var(--line); padding-top:10px; margin-top:10px; }
  .policy-detail-page .policy-facts > div { grid-template-columns:130px minmax(0,1fr); gap:20px; padding:11px 0; }
  .policy-detail-page .customer-record-actions { justify-items:start; gap:8px; padding-top:18px; border-top:1px solid var(--line); }
  .policy-detail-page .customer-record-actions > .button { width:100%; }
  .policy-detail-page .customer-record-actions .record-delete-trigger { justify-self:center; }
  .policy-detail-page .reminder-readiness { padding:0; border:0; margin:0; }
  .policy-detail-page .reminder-readiness h2 { margin:0 0 16px; font-size:16px; }
  .policy-detail-page .reminder-readiness p { line-height:1.65; }
  .policy-detail-page .detail-primary-actions { margin:20px 0 0; padding-top:20px; border-top:1px solid var(--line); }
  .policy-detail-page .detail-primary-actions .button { width:100%; justify-content:center; }
}

.phone-field > label > span { display:inline-flex; align-items:baseline; gap:4px; flex-wrap:nowrap; }
.phone-field > label .phone-optional-label { display:inline; margin:0; white-space:nowrap; }
.customer-email-note { margin:0; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); color:var(--muted); font-size:13px; line-height:1.5; }

.date-field { position:relative; display:block; width:100%; }
.date-field > input[type="text"] { width:100%; padding-right:50px; }
.date-calendar-control { position:absolute; right:4px; top:50%; transform:translateY(-50%); width:40px; height:40px; display:grid; place-items:center; color:var(--ink); }
.date-calendar-control .date-calendar-picker { position:absolute; inset:0; width:100%; height:100%; min-width:0; min-height:0; margin:0; padding:0; opacity:0; cursor:pointer; }
.date-calendar-picker::-webkit-calendar-picker-indicator { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; cursor:pointer; }
.date-calendar-control:focus-within { outline:2px solid var(--accent); border-radius:6px; }

.customer-edit-form .customer-extra-fields { display: grid; gap: 16px; }
.customer-edit-form .customer-extra-fields label { display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.customer-edit-form .customer-extra-fields textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #aaa9a5; border-radius: 6px; background: var(--surface); font: inherit; resize: vertical; }
.customer-edit-form .customer-extra-fields small { color: var(--muted); line-height: 1.4; }
.customer-edit-form .customer-extra-fields label.check { display: flex; align-items: center; gap: 8px; }
.customer-edit-form .customer-extra-fields label.check input { width: auto; min-height: 0; }

/* Shared policy forms */
.insurer-field,.policy-schedule-fields,.conditional-policy-fields { display:grid; gap:12px; min-width:0; }
.insurer-field label,.policy-schedule-fields > label:not(.check),.conditional-policy-fields label { display:grid; gap:6px; min-width:0; font-size:14px; }
.insurer-field input:not([type=hidden]),.insurer-field select,.policy-schedule-fields select,.policy-schedule-fields input:not([type=checkbox]):not([type=hidden]):not(.date-calendar-picker) { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #aaa9a5; border-radius:6px; background:var(--surface); font:inherit; }
.policy-schedule-fields > label.check { display:flex; align-items:flex-start; gap:9px; margin:0; font-size:14px; }
.policy-schedule-fields > label.check input[type=checkbox] { flex:0 0 auto; width:16px; min-width:16px; height:16px; min-height:0; margin:2px 0 0; padding:0; }
.policy-schedule-fields > .settings-note,.policy-schedule-fields > small,.conditional-policy-fields small { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }
.policy-schedule-fields > .settings-note,.policy-schedule-fields > small { margin-top:-7px; }
.policy-schedule-fields .date-field { width:100%; }

.policy-schedule-fields .date-field > input[type="text"] { padding-right: 50px; }

.desktop-reminder-preview { display:none; }
@media (min-width:901px) {
 .policy-detail-page .mobile-reminder-preview-action { display:none; }
 .desktop-reminder-preview { display:block; margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
 .desktop-reminder-preview h2 { font-size:16px; margin:0 0 16px; color:var(--accent); }
 .desktop-reminder-preview h3 { font-size:14px; margin:16px 0 8px; }
 .desktop-reminder-preview p { font-size:14px; margin:0 0 8px; }
 .desktop-reminder-preview pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:14px; line-height:1.55; margin:0 0 16px; }
 .desktop-reminder-preview .button { width:100%; justify-content:center; }
 .desktop-reminder-preview .policy-whatsapp-button + .policy-whatsapp-button { margin-top:8px; }
 .desktop-reminder-preview small { display:block; color:var(--muted); line-height:1.45; margin-top:10px; }
}
.policy-create-dialog .policy-dialog-form { border:0; padding:0; margin:0; max-width:none; background:transparent; }
.policy-create-dialog .policy-dialog-form footer { display:flex; justify-content:flex-end; gap:10px; }
.policy-create-dialog .policy-dialog-form .customer-picker { margin-bottom:16px; }
.policy-row-end { display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; flex-shrink:0; }
.policy-inactive-icon { color:var(--bad); flex:none; }
.filter-dialog input[type="date"] { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--surface); font:inherit; }
.customer-dialog .customer-extra-fields { display:grid; gap:16px; }
.customer-dialog .customer-extra-fields textarea { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #aaa9a5; border-radius:6px; background:var(--surface); font:inherit; font-size:14px; resize:vertical; }
.customer-dialog .customer-extra-fields small { font-size:12px; line-height:1.45; font-weight:400; color:var(--muted); }
.customer-dialog .customer-extra-fields label { min-width:0; }
.customer-address-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.customer-address-grid label { min-width:0; }
.customer-address-grid input,.customer-address-grid select { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #aaa9a5; border-radius:6px; background:var(--surface); font:inherit; }
@media(max-width:600px){.customer-address-grid{grid-template-columns:1fr 1fr}.customer-address-grid label:first-child{grid-column:1/-1}}
.customer-dialog .customer-policy-section { display:grid; gap:16px; margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.customer-dialog .customer-add-policy-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; }
.customer-dialog .customer-policy-fields { display:grid; gap:16px; }
.customer-dialog .customer-policy-fields .policy-schedule-fields { display:grid; gap:12px; }
.policy-create-dialog .policy-dialog-form { gap:16px; }
.policy-create-dialog .policy-customer-field { display:grid; gap:6px; }
.policy-create-dialog .policy-customer-label { font-size:14px; font-weight:600; }
.policy-create-dialog .policy-dialog-form .customer-picker { margin:0; }
.policy-customer-picker { display:grid; gap:8px; min-width:0; }
.policy-customer-search { width:100%; background:var(--surface); }
.policy-customer-search input { width:100%; }
.policy-customer-selected { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:10px 12px; border:1px solid var(--accent); border-radius:8px; background:var(--accent-soft); }
.policy-customer-selected strong { min-width:0; overflow-wrap:anywhere; }
.policy-customer-selected button { flex:none; border:0; background:transparent; color:var(--accent-dark); font:inherit; font-weight:700; cursor:pointer; }
.policy-customer-options { display:grid; max-height:220px; overflow:auto; overscroll-behavior:contain; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.policy-customer-options [role="option"] { display:flex; align-items:center; width:100%; min-height:44px; padding:8px 12px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.policy-customer-options [role="option"]:last-of-type { border-bottom:0; }
.policy-customer-options [role="option"] strong { overflow-wrap:anywhere; }
.policy-customer-options [role="option"].is-active,.policy-customer-options [role="option"]:hover,.policy-customer-options [role="option"]:focus-visible { background:var(--accent-soft); outline:none; }
.policy-customer-options [role="option"][aria-selected="true"] strong::after { content:"Selected"; margin-left:8px; color:var(--accent-dark); font-size:11px; font-weight:600; }
.policy-customer-empty { margin:0; padding:16px 12px; color:var(--muted); text-align:center; }
.policy-create-dialog .policy-schedule-fields { gap:12px; }
.policy-create-dialog .policy-schedule-fields > label.check { min-height:0; align-items:flex-start; }
.policy-create-dialog .policy-schedule-fields > .settings-note,
.policy-create-dialog .policy-schedule-fields > small { margin:-7px 0 0; }
.policy-create-dialog .policy-active-row { min-height:32px; }
.policy-create-dialog .policy-dialog-form footer { margin-top:0; }
.policy-type-field { display:grid; gap:12px; min-width:0; }
.policy-type-field label { display:grid; gap:6px; min-width:0; font-size:14px; }
.policy-type-field select,.policy-type-field input:not([type=hidden]) { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #aaa9a5; border-radius:6px; background:var(--surface); font:inherit; }
.billing-plan-features { display:grid; gap:6px; margin-top:12px; color:var(--muted); font-size:13px; line-height:1.4; }
.billing-plan-features > span::before { content:"✓"; color:var(--accent); margin-right:7px; }
.billing-allowance-note { margin:8px 0 16px; color:var(--muted); font-size:13px; line-height:1.5; }

.rk-tools{max-width:1080px;margin:0 auto;padding:32px 24px 80px}.rk-tools h1{font-size:30px;margin:0 0 12px}.rk-tools h2{font-size:18px;margin:16px 0 8px}.rk-muted,.rk-source,.rk-calc-result p{color:#667085}.rk-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;margin-top:28px}.rk-tool-card,.rk-calc-panel,.rk-calc-result{border:1px solid #dedbd6;border-radius:12px;background:#fff;padding:24px}.rk-tool-card{color:inherit;text-decoration:none;transition:transform .2s,box-shadow .2s}.rk-tool-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px #00000012}.rk-tool-card p{color:#667085}.rk-tool-card span,.rk-back{display:inline-flex;align-items:center;gap:8px;color:#d84d3b}.rk-back{margin-bottom:20px;text-decoration:none}.rk-calc-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:20px;margin-top:28px}.rk-choice-field{min-width:0;margin:0 0 22px;padding:0;border:0}.rk-choice-field legend,.rk-calc-panel>label{display:block;margin:0 0 9px;font-weight:700}.rk-choice-buttons,.rk-choice-cards{display:grid;gap:8px}.rk-choice-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.rk-choice-buttons-three{grid-template-columns:repeat(3,minmax(0,1fr))}.rk-choice-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rk-choice{position:relative;display:block;min-width:0;margin:0;cursor:pointer}.rk-choice input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.rk-choice span{display:flex;min-height:46px;align-items:center;justify-content:center;padding:10px 12px;border:1px solid #c9c5bf;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;line-height:1.25;text-align:center;transition:border-color .15s,background .15s,box-shadow .15s}.rk-choice-cards span{min-height:76px;align-items:flex-start;flex-direction:column;text-align:left}.rk-choice span strong{overflow-wrap:anywhere}.rk-choice span small{margin-top:4px;color:var(--muted);font-size:12px;font-weight:500}.rk-choice input:checked+span{border-color:var(--accent);background:#fff4ef;box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent-dark)}.rk-choice input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--accent) 32%,transparent);outline-offset:2px}.rk-choice:hover span{border-color:var(--accent)}.rk-capacity{display:flex;align-items:center;gap:12px}.rk-capacity input{width:100%;min-width:0;padding:12px;border:1px solid #bbb;border-radius:8px;font:inherit}.rk-slider{width:100%;margin:28px 0 4px;accent-color:#e65b47;cursor:pointer}.rk-range{display:flex;justify-content:space-between;color:#667085;font-size:12px}.rk-calc-result{display:flex;flex-direction:column;justify-content:center;gap:16px;background:linear-gradient(160deg,#fff,#fff1eb)}.rk-calc-result strong{font-size:clamp(32px,5vw,56px)}.rk-source{font-size:13px;margin-top:20px}@media(max-width:700px){.rk-tools{padding:24px 16px 96px}.rk-calc-grid{grid-template-columns:1fr}.rk-calc-panel{padding:18px}.rk-choice-field{margin-bottom:18px}.rk-choice-buttons-three{grid-template-columns:repeat(3,minmax(0,1fr))}.rk-choice span{min-height:48px;padding:9px 8px}.rk-choice-cards span{min-height:72px;padding:11px}.rk-slider{margin-top:18px}}@media(max-width:380px){.rk-choice-buttons-three{grid-template-columns:1fr}.rk-choice-buttons-three .rk-choice span{min-height:42px}.rk-choice-cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.rk-tool-card{transition:none}}
.rk-reference-tool { max-width: 980px; }
.rk-embedded-calculator { max-width: none; padding: 0; }
.rk-embedded-calculator .rk-calc-grid { margin-top: 0; }
.rk-tool-search-label { display: block; margin: 30px 0 8px; font-weight: 700; }
.rk-tool-search { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #bcb7af; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.rk-tool-search:focus-visible { outline: 3px solid #e65b4760; outline-offset: 2px; }
.rk-tool-count, .rk-tool-source { color: #667085; font-size: 13px; line-height: 1.5; }
.rk-reference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.rk-windscreen-table-wrap { max-width: 100%; margin: 20px 0; overflow-x: auto; border: 1px solid #dedbd6; border-radius: 12px; background: #fff; }
.rk-windscreen-scroll-hint { display: none; }
.rk-windscreen-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; margin: 16px 0 0; }
.rk-windscreen-shortcuts button { min-width: 0; padding: 5px 2px; border: 0; background: transparent; color: #667085; font: inherit; font-size: 12px; text-align: center; cursor: pointer; }
.rk-windscreen-shortcuts button:not(:last-child)::after { content: " ·"; color: #a8a19a; }
.rk-windscreen-shortcuts button:hover, .rk-windscreen-shortcuts button[aria-pressed="true"] { color: var(--accent-dark); font-weight: 700; }
.rk-windscreen-shortcuts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rk-windscreen-table-wrap:focus-visible { outline: 3px solid #e65b4760; outline-offset: 2px; }
.rk-windscreen-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; text-align: left; }
.rk-windscreen-table th, .rk-windscreen-table td { padding: 13px 16px; border-bottom: 1px solid #eee9e2; vertical-align: middle; }
.rk-windscreen-table thead th { position: sticky; top: 0; z-index: 2; background: var(--accent-dark); color: #fff; font-size: 13px; font-weight: 700; }
.rk-windscreen-table tbody[hidden] { display: none; }
.rk-windscreen-table .rk-windscreen-brand-row th { min-width: 0; padding: 12px 16px; border-top: 1px solid #dedbd6; background: #e9ded3; color: var(--ink); font-size: 15px; font-weight: 700; }
.rk-windscreen-table tbody:first-of-type .rk-windscreen-brand-row th { border-top: 0; }
.rk-windscreen-table tbody tr:nth-child(even) { background: #fcfaf7; }
.rk-windscreen-table tbody tr:hover { background: #fff3ed; }
.rk-windscreen-table tbody tr:last-child th, .rk-windscreen-table tbody tr:last-child td { border-bottom: 0; }
.rk-windscreen-table tbody th { min-width: 230px; font-weight: 400; }
.rk-windscreen-table tbody th strong, .rk-windscreen-table tbody th span { display: block; }
.rk-windscreen-table tbody th strong { color: var(--ink); font-size: 14px; }
.rk-windscreen-table tbody th span { margin-top: 3px; color: #667085; font-size: 12px; }
.rk-windscreen-table tbody td { white-space: nowrap; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-windscreen-table tbody td:last-child { color: var(--accent-dark); }
.rk-windscreen-table tr[hidden] { display: none; }
.rk-reference-card { min-width: 0; padding: 18px; border: 1px solid #dedbd6; border-radius: 12px; background: #fff; }
.rk-reference-card[hidden] { display: none; }
.rk-reference-card h2 { margin: 0 0 5px; font-size: 18px; }
.rk-reference-card p { margin: 0 0 14px; color: #667085; overflow-wrap: anywhere; }
.rk-reference-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.rk-reference-card dt { color: #667085; font-size: 12px; line-height: 1.35; }
.rk-reference-card dd { margin: 5px 0 0; font-size: 20px; font-weight: 700; }
.rk-reference-card dl div:last-child dd { color: var(--accent-dark); }
.rk-roadside-card { display: flex; flex-direction: column; align-items: flex-start; }
.rk-roadside-card strong { font-size: 24px; margin-top: auto; }
.rk-roadside-card .button { margin: 12px 0; }
.rk-roadside-card small { color: #667085; }
.rk-tool-empty { padding: 24px; border: 1px dashed #d6cec4; border-radius: 10px; background: #fff; }
.rk-tool-empty[hidden] { display: none; }
.rk-tool-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid #dedbd6; }
.rk-app-tools-return:not([hidden]) { display: block; max-width: 980px; margin: 0 auto 24px; padding: 0 24px; color: var(--accent-dark); font-size: 14px; }
@media(max-width:700px){.rk-app-tools-return:not([hidden]){padding:0 16px}}
.rk-tool-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; }
.rk-public-road-tax iframe { display: block; width: 100%; min-height: 900px; margin-top: 28px; border: 0; background: transparent; }
@media(max-width:700px){.rk-reference-list{grid-template-columns:1fr}.rk-reference-card dl{gap:8px}.rk-roadside-card strong{font-size:22px}}
@media(max-width:700px){.rk-embedded-calculator{padding:0}}
@media(min-width:321px) and (max-width:380px){.rk-embedded-calculator .rk-choice-buttons-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.rk-windscreen-scroll-hint{display:block;margin:8px 0 -12px;color:#667085;font-size:12px}.rk-windscreen-table thead th:first-child,.rk-windscreen-table tbody th{position:sticky;left:0;z-index:1;min-width:185px;max-width:185px;background:#fff;box-shadow:1px 0 #eee9e2}.rk-windscreen-table thead th:first-child{z-index:3;background:var(--accent-dark)}.rk-windscreen-table tbody tr:nth-child(even) th{background:#fcfaf7}.rk-windscreen-table th,.rk-windscreen-table td{padding:11px 12px}}
@media(max-width:700px){.rk-windscreen-shortcuts button{font-size:10px;letter-spacing:-.15px}}
@media(max-width:700px){.rk-windscreen-table tbody th strong{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:600px){.public-page-nav nav a:nth-child(1),.public-page-nav nav a:nth-child(3),.public-page-nav nav a:nth-child(4){display:none}.rk-public-road-tax iframe{min-height:1100px}}

/* The policy record follows the same compact hierarchy on phones and desktops. */
.policy-detail-page .policy-other-facts { border:0; margin:0 !important; padding:0; }
@media (min-width:901px) {
  .policy-detail-page > .policy-detail-heading { grid-column:auto; }
  .policy-detail-page > .policy-information-panel { padding:18px; }
}

/* Keep policy details in the same stacked-card layout as customer details. */
.policy-detail-page { align-items:stretch; }
.policy-detail-page > .policy-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
.policy-detail-page > .policy-detail-heading .page-header { flex:1 1 auto; min-width:0; margin:0; }
.policy-detail-page > .policy-detail-heading .page-header h1 { margin:0; }
.policy-detail-page > .policy-detail-heading .customer-actions-menu { flex:0 0 auto; }
.policy-detail-page > .policy-detail-heading .customer-actions-popover { width:max-content; min-width:168px; }
.policy-detail-page > .policy-detail-heading .customer-actions-popover a,
.policy-detail-page > .policy-detail-heading .customer-actions-popover .record-delete-trigger { justify-content:center; text-align:center; white-space:nowrap; }
.policy-detail-page > .policy-detail-heading .customer-actions-danger { display:flex; justify-content:center; }
.policy-detail-page > .policy-customer-contact,
.policy-detail-page > .policy-information-panel { width:100%; min-width:0; }
.policy-detail-page .policy-information-panel .policy-opt-out-note { margin-top:18px; }
.policy-detail-page .policy-information-panel .policy-preview-action { margin-top:12px; }
@media (min-width:901px) {
  .policy-detail-page { max-width:1040px !important; gap:20px !important; }
  .policy-detail-page > .policy-customer-contact,
  .policy-detail-page > .policy-information-panel { padding:24px; }
  .policy-detail-page > .policy-information-panel { padding:24px; }
  .policy-detail-page > .policy-customer-contact { gap:16px; }
  .policy-detail-page > .policy-customer-contact > .button { width:100%; min-width:0; }
}

/* Customer records use the same stacked card rhythm as policy records. */
.customer-detail-page { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.customer-detail-page > .customer-detail-heading { width:100%; }
.customer-detail-page > .customer-detail-heading .page-header { flex:1 1 auto; }
.customer-detail-page > .customer-detail-heading .customer-actions-popover { width:max-content; min-width:168px; }
.customer-detail-page > .customer-detail-heading .customer-actions-popover a,
.customer-detail-page > .customer-detail-heading .customer-actions-popover .record-delete-trigger { justify-content:center; text-align:center; white-space:nowrap; }
.customer-detail-page > .customer-detail-heading .customer-actions-danger { display:flex; justify-content:center; }
.customer-detail-page > .customer-profile-block,
.customer-detail-page > .customer-policies { width:100%; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.customer-detail-page > .customer-profile-block,
.customer-detail-page .customer-contact-block,
.customer-detail-page .customer-details-block { display:block; min-width:0; }
.customer-detail-page > .customer-policies { margin:0; }
.customer-detail-page .customer-facts > div { padding:5px 0; }
.customer-detail-page .customer-email-status { margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.customer-detail-page .customer-mock-note { margin-top:12px; }
.customer-detail-page .customer-policies > header { gap:12px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.customer-detail-page .customer-policies .name-list { margin:0; }
.customer-detail-page .customer-policies .name-list a { min-height:48px; padding:10px 0; }
@media (min-width:901px) {
  .customer-detail-page { max-width:1040px; margin:0 auto; gap:12px; }
  .customer-detail-page > .customer-profile-block,
  .customer-detail-page > .customer-policies { padding:16px; }
  .customer-detail-page .customer-facts > div { grid-template-columns:150px minmax(0,1fr); }
}

@media (min-width: 768px) { .customer-detail-page .eligibility-lines p { grid-template-columns:150px minmax(0,1fr); } }

.billing-resume-link { border:0; padding:0; background:none; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
.billing-resume-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }

/* Billing period: an accessible, compact single-choice control. */
.billing-period { border: 0; padding: 0; margin: 0; min-width: 0; }
.billing-period legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.billing-period-options { display: flex; width: max-content; margin-inline: auto; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.billing-period-options label { position: relative; cursor: pointer; }
.billing-period-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing-period-options span { display: flex; align-items: center; justify-content: center; min-width: 94px; min-height: 36px; padding: 0 14px; border-radius: 5px; color: var(--muted); font-size: 14px; font-weight: 600; }
.billing-period-options input:checked + span { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 3px #00000018; }
.billing-period-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 701px) and (max-width: 1100px) { .billing-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Marketing home: editorial photography with explanatory CSS artwork. */
.marketing-refresh { max-width: none; background: #f9f6f0; }
.marketing-refresh .marketing-nav { max-width: 1520px; margin: auto; border-bottom: 0; }
.marketing-refresh .marketing-nav nav { gap: clamp(14px, 2vw, 32px); }
.marketing-refresh .marketing-nav nav a { color: #42433f; }
.marketing-tools-menu { position: relative; }
.marketing-tools-mobile { display: none; }
.marketing-tools-desktop summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #42433f; font-size: .9rem; list-style: none; }
.marketing-tools-desktop summary::-webkit-details-marker { display: none; }
.marketing-tools-chevron { flex: none; transition: transform 180ms ease; }
.marketing-tools-desktop[open] .marketing-tools-chevron { transform: rotate(180deg); }
.marketing-tools-desktop[open] > div { position: absolute; z-index: 20; top: calc(100% + 12px); left: -18px; min-width: 210px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; box-shadow: 0 8px 24px #0000001a; animation: marketing-tools-open 180ms ease-out both; }
@keyframes marketing-tools-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.marketing-tools-desktop[open] > div a { display: block; padding: 10px; border-radius: 6px; white-space: nowrap; }
.marketing-tools-desktop[open] > div a:hover { background: #f9eee9; }
.marketing-tools-desktop summary:focus-visible, .marketing-tools-desktop a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .marketing-tools-chevron { transition: none; } .marketing-tools-desktop[open] > div { animation: none; } }
.marketing-refresh .marketing-nav .button { padding: 11px 18px; }
/* EN | BM language links. Rendered only by the static public site; scoped to the marketing header. */
.marketing-nav .marketing-lang { display: inline-flex; align-items: center; gap: 6px; color: #b4b2aa; font-size: .82rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.marketing-nav .marketing-lang a { padding: 6px 2px; color: #6f706a; text-decoration: none; }
.marketing-nav .marketing-lang a:hover { color: var(--ink); }
.marketing-nav .marketing-lang a[aria-current="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.marketing-nav .marketing-lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 600px) { .marketing-nav .marketing-lang { gap: 4px; font-size: .78rem; } }
/* Headers that carry the toggle keep their controls on one line; :has() limits this to the static public site. */
header.marketing-nav:has(.marketing-lang) .marketing-login-link { white-space: nowrap; }
@media (max-width: 360px) {
  header.marketing-nav:has(.marketing-lang) { padding: 0 12px; }
  header.marketing-nav:has(.marketing-lang) .marketing-brand img { height: 23px; }
  header.marketing-nav:has(.marketing-lang) > div { gap: 8px; }
  header.marketing-nav:has(.marketing-lang) .marketing-login-link { min-height: 38px; padding: 8px 9px; font-size: .86rem; }
  header.marketing-nav:has(.marketing-lang) .marketing-lang { gap: 3px; font-size: .74rem; }
}
.legal .legal-language-notice { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: .92rem; }
.marketing-refresh .hero { max-width: 1520px; margin: auto; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 92px); min-height: 650px; padding: 70px 4vw 104px; }
.marketing-refresh .hero h1 { max-width: 11ch; font-size: clamp(58px, 5.6vw, 96px); line-height: .98; letter-spacing: -.065em; overflow-wrap: normal; }
.marketing-refresh .hero .lede { margin: 26px 0 0; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; max-width: 520px; color: #555b5a; }
.marketing-refresh .hero-actions { margin-top: 34px; }
.marketing-refresh .hero-actions .button, .marketing-refresh .marketing-final-cta .button { display: inline-flex; align-items: center; gap: 16px; padding: 15px 22px; }
.marketing-hero-model { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: min(42vw, 590px); min-height: 440px; margin: 0; }
.marketing-hero-model img { display: block; width: 100%; height: calc(100% - 32px); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 26px #5d473630); }
.marketing-hero-model figcaption { max-width: 36ch; margin-top: 10px; color: #686965; font-size: 12px; line-height: 1.35; text-align: center; }
.marketing-intro { max-width: 1520px; margin: auto; padding: 48px 4vw 68px; border-top: 1px solid var(--line); }
.marketing-intro h2 { max-width: 760px; margin: 8px 0 0; font-size: clamp(36px, 4vw, 64px); line-height: 1.09; letter-spacing: -.055em; }
.marketing-feature { max-width: 1520px; margin: auto; padding: 42px 4vw 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(44px, 8vw, 140px); align-items: center; }
.marketing-feature-dates { direction: rtl; }
.marketing-feature-dates > * { direction: ltr; }
.marketing-feature-copy { max-width: 560px; }
.marketing-feature-number { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.marketing-feature h2 { margin: 24px 0; font-size: clamp(36px, 4.1vw, 66px); line-height: 1.06; letter-spacing: -.06em; }
.marketing-feature p { max-width: 520px; margin: 0; color: #5b6265; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.65; }
.marketing-visual { height: 400px; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px; background: #efe9df; }
.marketing-visual-records { margin: 0; background: #242424; flex-direction: column; }
.marketing-visual-records img { width: 100%; min-height: 0; flex: 1; object-fit: contain; }
.marketing-visual-records figcaption { width: 100%; padding: 7px 12px; color: #f7f3ed; background: #242424; text-align: center; font-size: 12px; line-height: 1.3; }
.marketing-visual-see-ahead { height: auto; aspect-ratio: 1672 / 941; margin: 0; display: block; background: #f7f4ee; }
.marketing-visual-see-ahead img { display: block; width: 100%; height: 100%; object-fit: contain; }
.see-ahead-mobile-note { display: none; }
.marketing-visual-see-ahead figcaption { position: absolute; bottom: 8px; right: 9px; padding: 4px 7px; border-radius: 5px; background: #fffdf9e8; color: #4f5558; font-size: 11px; line-height: 1.2; }
.marketing-visual-reminders { height: auto; aspect-ratio: 1671 / 941; margin: 0; display: block; background: #eee7e0; }
.marketing-visual-reminders img { display: block; width: 100%; height: 100%; object-fit: contain; }
.marketing-visual-reminders figcaption { position: absolute; right: 9px; bottom: 8px; padding: 4px 7px; border-radius: 5px; background: #fffdf9e8; color: #4f5558; font-size: 11px; line-height: 1.2; }
.marketing-refresh .workflow { display: block; max-width: none; padding: 105px max(4vw, calc((100vw - 1400px)/2)) 115px; background: #f0eae0; border: 0; }
.marketing-refresh .workflow header { max-width: 760px; }
.marketing-refresh .workflow header h2 { font-size: clamp(38px, 4.4vw, 68px); letter-spacing: -.06em; line-height: 1.05; margin: 12px 0 20px; }
.marketing-refresh .workflow header > p:last-child { color: #606568; font-size: 19px; line-height: 1.55; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 70px; }
.marketing-refresh .workflow article { display: block; padding: 30px; min-height: 230px; border-radius: 12px; background: #fffcf7; }
.marketing-refresh .workflow b { width: auto; height: auto; display: block; background: none; font-size: 14px; letter-spacing: .1em; }
.marketing-refresh .workflow h3 { margin: 28px 0 12px; font-size: 23px; letter-spacing: -.03em; }
.marketing-refresh .workflow article p { line-height: 1.6; }
.marketing-extra { max-width: 1520px; margin: auto; padding: 110px 4vw; }
.marketing-extra h2 { margin: 10px 0 42px; font-size: clamp(38px, 4vw, 60px); letter-spacing: -.055em; }
.marketing-extra-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.marketing-extra-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fffcf7; }
.marketing-extra-grid article > svg { width: 27px; height: 27px; color: var(--accent); }
.marketing-extra-grid h3 { margin: 26px 0 10px; font-size: 20px; }
.marketing-extra-grid p { color: #606568; line-height: 1.6; }
.marketing-extra-grid a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-weight: 700; }
.marketing-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 86px max(4vw, calc((100vw - 1400px)/2)); background: #e7e9e1; }
.marketing-trust h2 { max-width: 540px; margin: 12px 0 0; font-size: clamp(36px, 3.8vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
.marketing-trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; align-content: center; }
.marketing-trust li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; font-size: 18px; }
.marketing-trust li svg { color: #218058; flex: 0 0 22px; }
.marketing-refresh .faq { max-width: 1520px; margin: auto; }
.marketing-refresh .faq > div { min-width: 0; }
.marketing-final-cta { padding: 86px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #272c2a; color: #fff; }
.marketing-final-cta h2 { margin: 0; max-width: 720px; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -.05em; line-height: 1.1; }
.marketing-refresh footer { max-width: 1520px; margin: auto; flex-wrap: wrap; }
.marketing-refresh footer .business-identity { min-width: 300px; }
.marketing-refresh footer nav a { white-space: nowrap; }
@media (max-width: 1100px) { .marketing-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Homepage link to the User Guide (guide styles live in app/user-guide.css). */
.workflow-guide-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.workflow-guide-link:hover, .workflow-guide-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Public site footer: product and guide links on their own wrapping row (static public build only). */
.marketing footer:has(.marketing-footer-explore) { flex-wrap: wrap; }
.marketing footer .marketing-footer-explore { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.75rem; font-size: 0.875rem; }
/* 24px minimum touch target (WCAG 2.2 target size). */
.marketing footer .marketing-footer-explore a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); }
