:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f5f6f8;
  --ink: #17202a;
  --muted: #687383;
  --line: #e3e6ea;
  --brand: #bd1d74;
  --brand-dark: #941156;
  --brand-soft: #fbedf5;
  --navy: #172634;
  --green: #18864b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f6f7f9; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .62; }
.sign-in-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 0, #fbe8f3, transparent 38%), #f5f6f8; }
.sign-in-shell { width: min(470px, 100%); }
.sign-in-shell > .brand { display: flex; justify-content: center; margin-bottom: 24px; }
.sign-in-card { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 55px rgba(23, 32, 42, .13); }
.sign-in-card .eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.sign-in-card h1 { margin: 0; font-size: 30px; }
.sign-in-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.security-points { display: grid; gap: 10px; margin: 24px 0; padding: 17px; border-radius: 10px; color: #17683d; background: #edf9f2; font-size: 13px; font-weight: 650; }
.sign-in-button { width: 100%; }
.sign-in-card > small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.45; text-align: center; }
.sign-in-footnote { color: var(--muted); font-size: 12px; text-align: center; }
.shadow-monitor-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 18px; padding: 17px; border: 1px solid #cbddeb; border-radius: 10px; background: #f2f8fc; }
.shadow-monitor-card b { font-size: 13px; }
.shadow-monitor-card p { margin: 5px 0 0; color: #506d84; font-size: 12px; line-height: 1.5; }
.monitor-summary { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 18px; margin-bottom: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.monitor-summary > div { display: flex; align-items: center; gap: 10px; }
.monitor-summary > div:not(:first-child) { flex-direction: column; align-items: flex-start; gap: 3px; }
.monitor-summary p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.monitor-summary small { color: var(--muted); }
.monitor-dot { width: 11px; height: 11px; border-radius: 50%; background: #9aa3ab; box-shadow: 0 0 0 4px #edf0f2; }
.monitor-dot.healthy { background: var(--green); box-shadow: 0 0 0 4px #dff4e8; }
.monitor-error { grid-column: 1 / -1; padding: 10px 12px; border-radius: 7px; color: #8b2722 !important; background: #fff0ef; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--brand); font-size: 18px; }
.brand-mark img, .business-icon-preview img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark:has(img:not([hidden])) { overflow: hidden; background: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff; padding: 12px 19px; font-weight: 750; cursor: pointer; box-shadow: 0 4px 12px rgba(189, 29, 116, .18); }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-small { padding: 9px 15px; }
.button-large { padding: 14px 21px; }
.button-secondary { color: var(--ink); background: #fff; border-color: #d8dde3; box-shadow: none; }
.button-secondary:hover { color: var(--brand); background: #fff; border-color: var(--brand); }
.site-header, .app-header { height: 70px; display: flex; align-items: center; padding: 0 max(24px, 5vw); background: #fff; border-bottom: 1px solid var(--line); }
.site-header { justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.text-link { font-weight: 700; color: #3f4a57; }
.landing-page { background: #fff; }
.landing-main { min-height: 630px; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(36px, 6vw, 90px); padding: 76px max(24px, 7vw) 88px; overflow: hidden; background: radial-gradient(circle at 88% 10%, #fbe8f3 0, rgba(251,232,243,0) 31%), #fff; }
.landing-copy { max-width: 620px; }
.preview-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid #ead5e2; border-radius: 999px; color: var(--brand-dark); background: #fff8fc; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.preview-pill span { width: 8px; height: 8px; border-radius: 50%; background: #f0a000; box-shadow: 0 0 0 4px #ffefc8; }
.landing-copy h1 { max-width: 670px; margin: 20px 0; font-size: clamp(43px, 5.4vw, 74px); line-height: .99; letter-spacing: -.055em; }
.lead { max-width: 590px; margin: 0; color: #5d6875; font-size: 20px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; margin-top: 31px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #596571; font-size: 13px; font-weight: 650; }
.product-preview { min-width: 620px; border: 1px solid #dfe2e7; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 28px 70px rgba(25, 33, 43, .17); transform: rotate(1.2deg); }
.window-bar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 17px; color: #89929d; background: #fafafa; border-bottom: 1px solid #e9ebee; font-size: 12px; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9dde1; }
.window-bar span { margin-left: 9px; }
.preview-body { min-height: 410px; display: grid; grid-template-columns: 175px 1fr; }
.mini-sidebar { display: flex; flex-direction: column; gap: 18px; padding: 27px 20px; color: #7a8490; background: var(--navy); font-size: 12px; }
.mini-sidebar .brand-mark { width: 44px; height: 44px; }
.mini-sidebar b { margin-top: 9px; color: #fff; font-size: 14px; }
.mini-sidebar .active { margin: -7px -9px; padding: 10px 9px; border-radius: 7px; color: #fff; background: #344453; }
.mini-content { padding: 35px; background: #f7f8fa; }
.mini-heading { display: flex; justify-content: space-between; margin-bottom: 24px; font-size: 20px; font-weight: 800; }
.mini-heading em { color: var(--brand); font-size: 11px; font-style: normal; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { margin-bottom: 12px; padding: 17px; border: 1px solid #e3e6e9; border-radius: 10px; background: #fff; }
.mini-card small { display: block; margin-bottom: 8px; color: #929aa3; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.mini-card strong { font-size: 13px; }
.safe-card { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; padding: 15px; border: 1px solid #bfe1ce; border-radius: 9px; color: #17683d; background: #edf9f2; font-size: 11px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding: 62px max(24px, 9vw); color: #fff; background: var(--navy); }
.feature-strip article { display: grid; grid-template-columns: 42px 1fr; gap: 2px 14px; }
.feature-strip article span { grid-row: 1 / 3; color: #ef87bd; font-size: 13px; font-weight: 800; }
.feature-strip h2 { margin: 0; font-size: 18px; }
.feature-strip p { margin: 7px 0 0; color: #bac3cb; line-height: 1.5; }
.landing-footer { display: flex; justify-content: space-between; padding: 25px max(24px, 7vw); color: #7c8792; font-size: 12px; }
.landing-footer b { color: var(--green); }
.app-footer { margin-top: 38px; padding: 20px 0 4px; border-top: 1px solid #dfe3e7; color: #818b95; text-align: center; font-size: 11px; }

.app-page { min-height: 100vh; background: #f4f5f7; }
.app-header { position: sticky; top: 0; z-index: 2; padding: 0 28px; }
.workspace-name { display: flex; flex-direction: column; margin-left: 40px; padding-left: 40px; border-left: 1px solid var(--line); font-size: 14px; }
.workspace-name span { color: var(--muted); font-size: 11px; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-menu > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #32404d; font-size: 12px; font-weight: 800; }
.user-menu div { display: flex; flex-direction: column; font-size: 13px; }
.user-menu small { color: var(--muted); }
.platform-link { margin-left: auto; margin-right: 22px; color: var(--brand); font-size: 12px; font-weight: 800; }
.app-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 290px 1fr; align-items: start; }
.setup-sidebar { position: sticky; z-index: 1; top: 70px; height: calc(100vh - 70px); padding: 25px 22px 31px; color: #dbe1e6; background: var(--navy); overflow-y: auto; }
.sidebar-brand-mark { margin: 0 auto 19px; }
.setup-title { padding: 0 10px 25px; border-bottom: 1px solid #344350; }
.setup-title small { display: block; color: #93a0aa; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.setup-title b { display: block; margin-top: 7px; color: #fff; font-size: 17px; }
.setup-title > span { color: #9ba7b1; font-size: 11px; }
.progress { height: 5px; margin: 16px 0 7px; border-radius: 4px; background: #3a4956; overflow: hidden; }
.progress i { display: block; width: 20%; height: 100%; background: #e557a2; }
.setup-sidebar nav { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; }
.setup-sidebar nav button { width: 100%; display: flex; gap: 12px; padding: 12px 10px; border: 0; border-radius: 9px; color: #9da9b2; background: transparent; text-align: left; cursor: pointer; }
.setup-sidebar nav button:hover { color: #fff; background: #233541; }
.setup-sidebar nav button.current { color: #fff; background: #2b3b48; }
.setup-sidebar nav button.visited i { border-color: #61ad82; color: #fff; background: #28714a; }
.setup-sidebar nav i { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border: 1px solid #52606c; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 800; }
.setup-sidebar nav button.current i { border-color: var(--brand); background: var(--brand); }
.setup-sidebar nav span { display: flex; flex-direction: column; gap: 3px; }
.setup-sidebar nav b { font-size: 13px; }
.setup-sidebar nav small { font-size: 11px; }
.sidebar-help { margin-top: 18px; padding: 16px; border: 1px solid #3c4d5a; border-radius: 10px; font-size: 12px; }
.sidebar-help p { margin: 6px 0 0; color: #9eabb5; line-height: 1.5; }
.setup-main { width: min(860px, calc(100vw - 340px)); margin: 0 auto; padding: 34px 0 70px; }
.preview-notice { display: flex; align-items: center; gap: 13px; margin-bottom: 29px; padding: 10px 13px; border: 1px solid #edd8a6; border-radius: 9px; background: #fff9e9; font-size: 12px; }
.preview-notice span { padding: 4px 7px; border-radius: 5px; color: #704f00; background: #ffe7a7; font-weight: 850; text-transform: uppercase; }
.preview-notice p { margin: 0; color: #665b40; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.page-heading .eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.page-heading h1 { margin: 0; font-size: 31px; letter-spacing: -.025em; }
.page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.status-badge { padding: 6px 10px; border: 1px solid #d9dde2; border-radius: 999px; color: #66717c; background: #fff; font-size: 11px; font-weight: 750; }
.status-badge.enabled { border-color: #bfe1ce; color: #17683d; background: #edf9f2; }
.status-badge.disabled { border-color: #d9dde2; color: #66717c; background: #eceff1; }
.page-heading-actions { display: flex; align-items: center; gap: 10px; }
.feature-toggle { position: relative; display: inline-flex; cursor: pointer; }
.feature-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-track { display: flex; align-items: center; width: 46px; height: 25px; padding: 3px; border-radius: 999px; background: #aeb6bd; transition: background .2s ease; }
.toggle-track > span { display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(23, 32, 42, .28); transition: transform .2s ease; }
.feature-toggle input:checked + .toggle-track { background: var(--brand); }
.feature-toggle input:checked + .toggle-track > span { transform: translateX(21px); }
.feature-toggle input:focus-visible + .toggle-track { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.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; }
.setup-form { display: flex; flex-direction: column; gap: 16px; }
.wizard-step { display: none; }
.wizard-step.active { display: contents; }
.form-card { padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 5px rgba(23, 32, 42, .03); }
.feature-settings { transition: opacity .2s ease, filter .2s ease; }
.feature-settings.disabled-settings { opacity: .62; filter: grayscale(1); color: #8c949c; background: #e7e9eb; pointer-events: none; }
.feature-settings.disabled-settings * { color: #8c949c !important; border-color: #cfd3d6 !important; box-shadow: none !important; }
.feature-settings.disabled-settings input, .feature-settings.disabled-settings textarea, .feature-settings.disabled-settings select, .feature-settings.disabled-settings button, .feature-settings.disabled-settings .detection-card, .feature-settings.disabled-settings .routing-card, .feature-settings.disabled-settings .warning-card, .feature-settings.disabled-settings .connection-result { color: #8c949c !important; background: #dfe2e4 !important; cursor: not-allowed; }
.feature-settings.disabled-settings .rule-icon, .feature-settings.disabled-settings .auto-badge, .feature-settings.disabled-settings .connection-result-status { background: #d1d5d8 !important; }
.wizard-step .page-heading > div:first-child { transition: opacity .2s ease, filter .2s ease; }
.wizard-step.feature-disabled .page-heading > div:first-child { opacity: .48; filter: grayscale(.7); }
.trigger-summary { display: flex; gap: 12px; margin-bottom: 23px; padding: 14px; border: 1px solid #cbddeb; border-radius: 9px; background: #f2f8fc; }
.trigger-summary > span { align-self: flex-start; padding: 4px 7px; border-radius: 999px; color: #245d91; background: #deeffb; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.trigger-summary div { display: flex; flex-direction: column; gap: 4px; }
.trigger-summary b { font-size: 13px; }
.trigger-summary p { margin: 0; color: #5f7180; font-size: 12px; line-height: 1.45; }
.card-heading { display: flex; gap: 13px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #edf0f2; }
.card-heading.split-heading { align-items: center; justify-content: space-between; }
.card-heading-copy { display: flex; gap: 13px; }
.card-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-weight: 850; }
.card-heading h2 { margin: 0; font-size: 17px; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; color: #3d4854; font-size: 12px; font-weight: 750; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cfd5db; border-radius: 7px; color: #26313b; background: #fff; outline: none; }
.form-grid input, .form-grid select { height: 43px; padding-top: 0; padding-bottom: 0; }
.form-grid textarea { resize: vertical; line-height: 1.5; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-grid label small { color: #8b949e; font-weight: 450; }
.setup-note { grid-column: 1 / -1; padding: 15px 16px; border: 1px solid #d9dfe4; border-radius: 8px; background: #f8f9fa; }
.setup-note b { color: #303a44; font-size: 13px; }
.setup-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.trigger-rule-list { display: flex; flex-direction: column; gap: 14px; }
.workflow-trigger-rule { padding: 18px; border: 1px solid #dce1e5; border-radius: 10px; background: #f9fafb; }
.workflow-trigger-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 11px; }
.workflow-trigger-heading h3 { margin: 0; font-size: 14px; }
.workflow-trigger-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.trigger-action { align-self: start; padding: 5px 8px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.accept-icon { color: #fff; background: var(--brand); }
.acceptance-icon { color: #17683d; background: #dff4e8; }
.direct-icon { color: #245d91; background: #e5f2ff; }
.trigger-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; margin: 15px 0; padding: 0; list-style: none; counter-reset: trigger-check; }
.trigger-checks li { position: relative; padding-left: 21px; color: #56626e; font-size: 11px; line-height: 1.45; counter-increment: trigger-check; }
.trigger-checks li::before { content: "✓"; position: absolute; left: 0; color: #18864b; font-weight: 900; }
.workflow-phrase-editor { display: flex; flex-direction: column; gap: 10px; padding: 13px; border: 1px solid #e0e4e8; border-radius: 8px; background: #fff; }
.workflow-phrase-editor > b { color: #3d4854; font-size: 11px; }
.workflow-result { display: flex; gap: 9px; margin-top: 12px; padding: 10px 12px; border-radius: 7px; color: #506d84; background: #eef6fb; }
.workflow-result b { flex: 0 0 auto; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.workflow-result p { margin: 0; font-size: 11px; line-height: 1.45; }
.business-icon-uploader { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.business-icon-preview { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid #d8dde2; border-radius: 16px; color: #fff; background: var(--brand); font-size: 30px; font-weight: 850; overflow: hidden; }
.business-icon-preview:has(img:not([hidden])) { background: #fff; }
.business-icon-copy b { font-size: 13px; }
.business-icon-copy p { margin: 6px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.business-icon-copy small { color: #8b949e; font-size: 10px; }
.business-icon-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.business-icon-actions .button { white-space: nowrap; }
.notification-list { display: flex; flex-direction: column; gap: 15px; }
.notification-rule { padding: 18px; border: 1px solid #d9dfe4; border-radius: 10px; background: #f8f9fa; }
.notification-rule-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.notification-rule-heading h3 { margin: 0; font-size: 14px; }
.notification-rule-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.notification-rule-heading .feature-toggle input { width: 1px; min-height: 1px; height: 1px; padding: 0; border: 0; }
.notification-rule-fields { margin-top: 17px; }
.notification-rule-fields.disabled-settings { opacity: .58; }
.notification-rule-fields.disabled-settings input, .notification-rule-fields.disabled-settings textarea { color: #8c949c; background: #dfe2e4; cursor: not-allowed; }
.notification-template-title { padding-top: 4px; border-top: 1px solid #e1e5e8; }
.notification-template-title b { color: #303a44; font-size: 12px; }
.notification-template-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notification-template-title.urgent-template b { color: #a12b24; }
.servicem8-notification-flow { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #cbddeb; border-radius: 8px; color: #506d84; background: #f2f8fc; font-size: 11px; font-weight: 750; }
.servicem8-notification-flow > span { padding: 6px 8px; border-radius: 6px; background: #fff; }
.servicem8-notification-flow i { font-style: normal; }
.servicem8-notification-flow > div { display: flex; flex-wrap: wrap; gap: 6px; }
.servicem8-notification-flow b { padding: 6px 8px; border-radius: 999px; color: #17683d; background: #dff4e8; font-size: 10px; }
.servicem8-notification-flow b.urgent-outcome { color: #a12b24; background: #fff0ef; }
.shared-notification-settings { margin-top: 16px; }
.notification-scenarios { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.notification-scenario { padding: 16px; border: 1px solid #cfe2d7; border-radius: 9px; background: #fff; }
.notification-scenario.urgent-scenario { border-color: #edc8c5; }
.notification-scenario .notification-template-title { padding: 0 0 13px; border: 0; }
.notification-template-title > span { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; color: #245d91; background: #e5f2ff; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.notification-scenario.urgent-scenario .notification-template-title > span { color: #a12b24; background: #fff0ef; }
.input-action-row { display: flex; gap: 9px; }
.input-action-row input { flex: 1; min-width: 0; }
.input-action-row .button { flex: 0 0 auto; height: 43px; white-space: nowrap; }
.connection-result { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px 13px; border: 1px solid #d9dfe4; border-radius: 8px; background: #f8f9fa; }
.connection-result p { margin: 0; color: var(--muted); font-size: 12px; }
.connection-result-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #66717c; background: #e8ebee; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.connection-result-status.testing { color: #245d91; background: #e5f2ff; }
.connection-result-status.connected { color: #17683d; background: #dff4e8; }
.form-grid select:disabled { color: #89929d; background: #f2f4f6; cursor: not-allowed; }
.field-label { display: inline-flex; align-items: center; gap: 7px; }
.help-tip { position: relative; display: inline-grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 1px solid #aeb7c0; border-radius: 50%; color: #66717c; background: #fff; font-size: 11px; font-weight: 850; line-height: 1; cursor: help; }
.help-tip > span { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 10px); width: min(310px, 75vw); padding: 11px 12px; border-radius: 8px; color: #fff; background: #1f2e3a; box-shadow: 0 8px 24px rgba(23, 32, 42, .22); font-size: 12px; font-weight: 500; line-height: 1.45; text-align: left; transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none; }
.help-tip > span::after { content: ""; position: absolute; top: 100%; left: 50%; border: 6px solid transparent; border-top-color: #1f2e3a; transform: translateX(-50%); }
.help-tip > span.align-left { left: 0; transform: none; }
.help-tip > span.align-left::after { left: 10px; transform: none; }
.help-tip > span.align-right { right: 0; left: auto; transform: none; }
.help-tip > span.align-right::after { right: 10px; left: auto; transform: none; }
.help-tip:hover > span, .help-tip:focus > span, .help-tip:focus-visible > span, .help-tip.open > span { opacity: 1; visibility: visible; }
.form-actions { display: flex; justify-content: space-between; padding-top: 8px; }
.top-gap { margin-top: 24px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-card { position: relative; display: flex; min-height: 120px; flex-direction: column; gap: 7px; padding: 17px; border: 1px solid #d8dde2; border-radius: 10px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.choice-card input { width: 16px; height: 16px; margin: 0 0 5px; accent-color: var(--brand); }
.choice-card b { font-size: 13px; }
.choice-card small { color: var(--muted); line-height: 1.45; }
.warning-card { margin-bottom: 24px; padding: 16px; border: 1px solid #efd5a0; border-radius: 9px; color: #654a12; background: #fff9e9; }
.warning-card p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.creation-policy-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 16px; border: 1px solid #bfe1ce; border-radius: 9px; background: #edf9f2; }
.creation-policy-card > div { display: flex; flex-direction: column; gap: 5px; }
.creation-policy-card b { color: #17683d; font-size: 13px; }
.creation-policy-card p { margin: 0; color: #426654; font-size: 12px; line-height: 1.5; }
.verification-policy-card { border-color: #cbddeb; background: #f2f8fc; }
.verification-policy-card b { color: #245d91; }
.verification-policy-card p { color: #506d84; }
.detection-card { margin-top: 24px; padding: 18px; border: 1px solid #d9dfe4; border-radius: 10px; background: #f8f9fa; }
.detection-heading { display: flex; align-items: flex-start; gap: 12px; }
.detection-heading div { display: flex; flex-direction: column; gap: 4px; }
.detection-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.auto-badge { padding: 4px 7px; border-radius: 999px; color: #245d91; background: #e5f2ff; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.detection-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 17px; }
.detection-rules > div { display: flex; gap: 10px; padding: 13px; border: 1px solid #e0e4e8; border-radius: 8px; background: #fff; }
.detection-rules p { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; }
.detection-rules small { color: var(--muted); line-height: 1.4; }
.detection-rules > .detection-rule-editor { flex-direction: column; gap: 13px; }
.detection-rule-title { display: flex; align-items: flex-start; gap: 10px; }
.queue-destination { display: flex; flex-direction: column; gap: 6px; color: #3d4854; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.queue-destination select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #cfd5db; border-radius: 7px; color: #26313b; background: #fff; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: normal; }
.phrase-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.phrase-list li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px 5px 9px; border: 1px solid #cbddeb; border-radius: 999px; color: #245d91; background: #f2f8fc; font-size: 11px; font-weight: 700; }
.phrase-list button { display: grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; color: #5f7180; background: transparent; font-size: 15px; line-height: 1; cursor: pointer; }
.phrase-list button:hover, .phrase-list button:focus-visible { color: #fff; background: #a12b24; }
.phrase-entry { display: flex; gap: 7px; }
.phrase-entry input { flex: 1; min-width: 0; height: 38px; min-height: 38px; }
.phrase-entry .button { flex: 0 0 auto; min-height: 38px; padding: 8px 11px; font-size: 11px; }
.phrase-error { margin: -5px 0 0; }
.template-toolbar { display: grid; grid-template-columns: auto minmax(150px, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid #d8dde2; border-radius: 8px 8px 0 0; background: #f5f7f8; }
.template-toolbar + input, .template-toolbar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.template-toolbar-label { display: inline-flex; align-items: center; gap: 6px; color: #4f5c68; font-size: 11px; font-weight: 750; white-space: nowrap; }
.template-toolbar-label > span { display: inline-grid; place-items: center; min-width: 25px; height: 23px; padding: 0 4px; border-radius: 5px; color: var(--brand-dark); background: var(--brand-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.template-toolbar select { min-width: 0; height: 34px; min-height: 34px; padding: 0 9px; font-size: 11px; }
.template-toolbar .template-insert-button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.template-toolbar .template-insert-button:disabled { border-color: #d1d6db; color: #8b949e; background: #e7eaed; box-shadow: none; cursor: not-allowed; }
.template-reset-button { min-width: 93px; padding: 6px 8px; font-size: 10px; white-space: nowrap; }
.template-reset-button.confirm-reset { color: #a12b24; background: #fff0ef; }
.rule-icon { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 7px; font-size: 11px; font-weight: 850; }
.quote-icon { color: #245d91; background: #e5f2ff; }
.work-icon { color: #17683d; background: #dff4e8; }
.routing-card { margin-top: 14px; padding: 18px; border: 1px solid #d9dfe4; border-radius: 10px; background: #fff; }
.routing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.routing-heading > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.routing-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.routing-heading small { margin-top: 6px; color: #8b949e; font-size: 10px; }
.routing-actions { display: flex; align-items: center; gap: 8px; }
.routing-actions .button { padding: 9px 12px; white-space: nowrap; font-size: 11px; }
.verification-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 17px; border: 1px solid #d9dfe4; border-radius: 10px; background: #f8f9fa; }
.verification-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.verification-copy b { font-size: 13px; }
.verification-copy p { margin: 0; max-width: 520px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.verification-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #794f00; background: #fff0bf; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.verification-status.sent { color: #245d91; background: #e5f2ff; }
.verification-status.verified { color: #17683d; background: #dff4e8; }
.verification-actions { display: flex; min-width: 205px; flex-direction: column; align-items: stretch; gap: 8px; }
.verification-actions .button { white-space: nowrap; }
.text-button { border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.inline-error { margin: 9px 0 0; color: #b42318; font-size: 12px; font-weight: 700; }
.review-flow { display: grid; gap: 2px; }
.review-flow > div { position: relative; display: flex; gap: 13px; padding: 13px 0; }
.review-flow > div:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 44px; width: 2px; height: 16px; background: #dfe4e7; }
.review-flow i { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--brand); font-size: 11px; font-style: normal; font-weight: 800; }
.review-flow span { display: flex; flex-direction: column; gap: 4px; }
.review-flow small { color: var(--muted); }
.review-flow > div.inactive { opacity: .38; filter: grayscale(1); }
.review-flow > div.inactive i { color: #737b82; background: #cbd0d4; }
.review-flow > div.inactive small { font-weight: 700; }
.safe-summary { margin-top: 20px; padding: 17px; border: 1px solid #bfe1ce; border-radius: 9px; color: #17683d; background: #edf9f2; }
.safe-summary p { margin: 5px 0 0; font-size: 12px; }
.completion-message { padding: 40px; border: 1px solid #bfe1ce; border-radius: 12px; text-align: center; background: #fff; }
.completion-message b { color: #17683d; font-size: 24px; }
.completion-message p { margin: 10px auto 24px; max-width: 530px; color: var(--muted); line-height: 1.5; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-card { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.role-card > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 9px; color: #42505c; background: #e9edf0; font-weight: 850; }
.role-card.admin-role > span { color: var(--brand); background: var(--brand-soft); }
.role-card h2 { margin: 0; font-size: 16px; }
.role-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.user-invite-grid { grid-template-columns: 1.5fr 1fr auto; align-items: end; }
.user-invite-grid .button { height: 43px; }
.member-list { margin-top: 23px; border-top: 1px solid #e8ebee; }
.member-list > div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf0f2; }
.member-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #344452; font-size: 11px; font-weight: 850; }
.member-list p { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; }
.member-list small { color: var(--muted); }
.role-pill { padding: 5px 8px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 850; }
.test-delivery-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px 20px; align-items: end; margin-top: 24px; padding: 18px; border: 1px solid #d9dfe4; border-radius: 10px; background: #f8f9fa; }
.test-delivery-card > div:first-child { align-self: center; }
.test-delivery-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.test-delivery-card > small { grid-column: 1 / -1; color: #8b949e; }
.test-delivery-card > small.passed { color: #17683d; font-weight: 750; }

.server-main { width: min(1050px, 92vw); margin: 0 auto; padding: 36px 0 70px; }
.platform-banner { display: flex; gap: 13px; margin-bottom: 30px; padding: 14px 16px; border: 1px solid #e5bfd3; border-radius: 10px; background: #fff4fa; }
.platform-banner > span { align-self: flex-start; padding: 4px 7px; border-radius: 999px; color: #fff; background: var(--brand); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.platform-banner div { display: flex; flex-direction: column; gap: 4px; }
.platform-banner p { margin: 0; color: #6e5663; font-size: 12px; }
.server-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.server-card { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.server-card > span { color: var(--brand); font-size: 11px; font-weight: 850; }
.server-card h2 { margin: 0; font-size: 16px; }
.server-card p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.server-card small { color: #8c959e; font-weight: 700; }
.platform-access-card { margin-top: 0; }
.platform-grant-form { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 20px; padding: 16px; border: 1px solid #e2e5e8; border-radius: 9px; background: #f8f9fa; }
.platform-grant-form label { display: flex; flex-direction: column; gap: 6px; color: #3d4854; font-size: 12px; font-weight: 750; }
.platform-grant-form input { height: 43px; padding: 0 12px; border: 1px solid #cfd5db; border-radius: 7px; }
.platform-grant-form small { color: var(--muted); font-weight: 450; }
.platform-grant-form .button { height: 43px; }
.access-table { font-size: 12px; }
.access-table > div { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 15px; align-items: center; padding: 13px 10px; border-bottom: 1px solid #e8ebee; }
.access-table .access-header { color: #7d8791; background: #f7f8f9; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.access-table span { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.access-table small { color: var(--muted); }
.standalone-main { width: min(1000px, 92vw); margin: 0 auto; padding: 36px 0 70px; }
.activity-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.activity-event { padding: 17px; border: 1px solid #e0e4e8; border-radius: 10px; background: #fff; }
.activity-event-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.activity-event-heading > div { display: flex; flex-direction: column; gap: 4px; }
.activity-event-heading small, .activity-actions small { color: var(--muted); }
.activity-event > p { margin: 12px 0 0; color: #56616b; font-size: 12px; }
.activity-actions { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.activity-actions li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; background: #f3f8f5; }
.activity-actions li > span { color: #17683d; font-weight: 900; }
.activity-actions li > div { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.activity-reasons { padding: 10px; border-left: 3px solid #d6a243; background: #fff9eb; }
.empty-state { padding: 35px 20px; text-align: center; }
.empty-state p { color: var(--muted); }

@media (max-width: 940px) {
  .landing-main { grid-template-columns: 1fr; }
  .product-preview { min-width: 0; }
  .app-shell { grid-template-columns: 230px 1fr; }
  .setup-main { width: calc(100vw - 270px); }
}
@media (max-width: 680px) {
  .site-header, .app-header { padding: 0 17px; }
  .landing-main { padding-top: 48px; }
  .landing-copy h1 { font-size: 45px; }
  .product-preview { display: none; }
  .feature-strip { grid-template-columns: 1fr; }
  .app-header .workspace-name { display: none; }
  .user-menu div { display: none; }
  .app-shell { display: block; }
  .setup-sidebar { top: 70px; height: auto; padding: 16px; overflow-x: auto; overflow-y: hidden; }
  .sidebar-brand-mark, .setup-title, .setup-sidebar .sidebar-help { display: none; }
  .setup-sidebar nav { flex-direction: row; padding: 0; overflow-x: auto; }
  .setup-sidebar nav button { min-width: 47px; padding: 8px; }
  .setup-sidebar nav span { display: none; }
  .setup-main { width: auto; padding: 25px 16px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .business-icon-uploader { grid-template-columns: auto 1fr; }
  .business-icon-actions { grid-column: 1 / -1; flex-direction: row; }
  .form-grid label.full { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .input-action-row { flex-direction: column; }
  .input-action-row .button { width: 100%; }
  .verification-card { align-items: stretch; flex-direction: column; }
  .verification-actions { min-width: 0; }
  .detection-rules { grid-template-columns: 1fr; }
  .workflow-trigger-heading { grid-template-columns: auto 1fr; }
  .trigger-action { grid-column: 2; }
  .trigger-checks { grid-template-columns: 1fr; }
  .template-toolbar { grid-template-columns: minmax(0, 1fr) auto auto; }
  .template-toolbar-label { grid-column: 1 / -1; }
  .servicem8-notification-flow { align-items: stretch; flex-direction: column; }
  .servicem8-notification-flow i { align-self: center; transform: rotate(90deg); }
  .routing-heading { flex-direction: column; }
  .role-grid, .server-grid { grid-template-columns: 1fr; }
  .test-delivery-card { grid-template-columns: 1fr; }
  .test-delivery-card > small { grid-column: auto; }
  .user-invite-grid { grid-template-columns: 1fr; }
  .access-table > div { grid-template-columns: 1fr; }
  .platform-grant-form { grid-template-columns: 1fr; }
  .page-heading { gap: 10px; }
  .landing-footer { gap: 14px; flex-direction: column; }
}
