:root {
  color-scheme: light;
  --ink: #1b2732;
  --muted: #31485c;
  --line: #d3e4f2;
  --paper: #ffffff;
  --canvas: #f1f6fb;
  --navy: #1c2833;
  --blue: #344b60;
  --teal-old: #4179aa;
  --mint: #bfd7ec;
  --danger: #aa3038;
  --shadow: 0 16px 40px rgba(24, 38, 50, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: #385167; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #293c4d; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #427cae;
  outline-offset: 3px;
}
img { max-width: 100%; }
.content-width { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; max-width: 1320px; margin: 0 auto; padding: 0 36px; }
.brand { display: inline-flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); background: var(--mint); border-radius: 13px; font-weight: 850; font-size: 21px; }
.brand strong { display: block; font-size: 19px; letter-spacing: -.035em; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .13em; line-height: 1.6; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #3b566e; font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a:hover { color: #39536a; }
.main-nav .w3-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; }
.hero { overflow: hidden; color: #fff; background: radial-gradient(ellipse at 82% 22%, rgba(78, 123, 162, .23), transparent 36%), linear-gradient(125deg, #1c2833 0%, #263847 100%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 54px; min-height: 510px; padding-top: 76px; padding-bottom: 76px; }
.eyebrow { margin: 0 0 12px; color: #456581; font-size: 13px; font-weight: 800; letter-spacing: .15em; line-height: 1.4; }
.eyebrow.light { color: #b0cee8; }
.hero h1 { max-width: 670px; margin: 0; color: #fff; font-size: clamp(42px, 5vw, 65px); font-weight: 760; letter-spacing: -.055em; line-height: 1.07; }
.hero-copy { max-width: 600px; margin: 24px 0 0; color: #cfe1f1; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 730; line-height: 1.25; text-align: center; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { color: #fff; background: #283a4a; }
.button-accent { color: #19252f; background: var(--teal); }
.button-accent:hover { color: #19252f; background: #7ca7cd; }
.button-outline { color: #fff; border-color: rgba(255,255,255,.42); background: transparent; }
.button-outline:hover { color: #fff; border-color: #fff; }
.button-light { color: var(--navy); background: #fff; }
.button-light:hover { color: var(--navy); background: #e9f1f8; }
.button-secondary { color: #334a5e; border-color: var(--line); background: #fff; }
.button-secondary:hover { color: var(--ink); background: #f1f6fb; }
.button-danger { color: #fff; background: var(--danger); }
.button-small { min-height: 36px; padding: 7px 12px; color: #fff; background: var(--blue); }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 30px; color: #afc9e0; font-size: 14px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6c9dc7; box-shadow: 0 0 0 4px rgba(118, 156, 189, .15); }
.hero-visual { padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.07); box-shadow: 0 28px 70px rgba(0,0,0,.13); }
.hero-visual img { display: block; width: 100%; height: auto; }
.intro-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; padding-top: 85px; padding-bottom: 54px; }
.intro-copy h2, .section-heading h2, .guide-banner h2 { margin: 0; font-size: clamp(28px, 3vw, 39px); letter-spacing: -.04em; line-height: 1.17; }
.intro-section > p { max-width: 640px; margin: 26px 0 0; color: var(--muted); font-size: 17px; }
.services-section { padding-top: 35px; padding-bottom: 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading .text-link { margin-bottom: 6px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.service-card, .wiki-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 4px 14px rgba(29, 46, 61, .035); }
.service-card { display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; }
.service-card .eyebrow { margin-bottom: 16px; }
.service-card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; line-height: 1.3; }
.service-card p { flex: 1; margin: 10px 0 19px; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-banner { color: #fff; background: #31485c; }
.guide-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 51px; padding-bottom: 54px; }
.guide-banner h2 { max-width: 680px; color: #fff; }
.guide-banner p:not(.eyebrow) { max-width: 720px; margin: 13px 0 0; color: #cadeef; }
.site-footer { color: #c6dcef; background: #151e26; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-top: 36px; padding-bottom: 30px; }
.footer-inner strong { color: #fff; font-size: 17px; }
.footer-inner p { max-width: 420px; margin: 6px 0 0; color: #31485c; font-size: 14px; }
.footer-inner > div:last-child { display: flex; align-items: flex-start; gap: 20px; }
.footer-inner a { color: #c6dcef; font-size: 14px; }
.footer-bottom { padding-top: 16px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #31485c; font-size: 13px; }
.wiki-main, .admin-main { min-height: 65vh; padding-top: 57px; padding-bottom: 85px; }
.page-intro { max-width: 850px; margin-bottom: 38px; }
.page-intro h1, .admin-heading h1, .article-heading h1, .editor-heading h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 4vw, 49px); letter-spacing: -.05em; line-height: 1.12; }
.page-intro > p:not(.eyebrow) { max-width: 740px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.search-form { display: flex; gap: 10px; margin-top: 27px; }
.search-form input { flex: 1; min-width: 0; }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid #bcd6ec; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
input::placeholder { color: #31485c; }
.wiki-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.wiki-results-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.wiki-results-head > span, .updated-label { color: #31485c; font-size: 14px; }
.wiki-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wiki-card { display: flex; min-height: 242px; flex-direction: column; }
.wiki-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.category-pill { display: inline-block; max-width: 100%; padding: 4px 9px; overflow: hidden; border-radius: 20px; color: #354e63; background: #e5eff7; font-size: 13px; font-weight: 800; letter-spacing: .045em; text-overflow: ellipsis; white-space: nowrap; }
.wiki-card h2 { margin: 18px 0 7px; font-size: 21px; letter-spacing: -.035em; line-height: 1.28; }
.wiki-card h2 a { color: var(--ink); text-decoration: none; }
.wiki-card h2 a:hover { color: #385269; }
.wiki-card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.empty-state { padding: 35px; border: 1px dashed #b1cbe2; border-radius: 12px; background: #fff; }
.empty-state h1, .empty-state h3 { margin-top: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(190px, 250px); align-items: start; gap: 55px; padding-top: 42px; padding-bottom: 90px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; color: #31485c; font-size: 14px; }
.breadcrumbs a { text-decoration: none; }
.article-heading .category-pill { margin-bottom: 14px; }
.article-heading h1 { font-size: clamp(34px, 4vw, 48px); }
.article-excerpt { margin: 13px 0 8px; color: var(--muted); font-size: 17px; }
.article-heading .updated-label { margin: 0 0 22px; }
.article-figure { margin: 18px 0 30px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.article-figure img { display: block; width: 100%; height: auto; }
.article-figure figcaption { margin-top: 10px; color: #31485c; font-size: 14px; }
.markdown-body { color: #31475b; }
.markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 1.8em 0 .5em; color: #253746; letter-spacing: -.025em; line-height: 1.3; }
.markdown-body h2 { font-size: 25px; }
.markdown-body h3 { font-size: 20px; }
.markdown-body p { margin: 0 0 1em; }
.markdown-body li { margin: .42em 0; padding-left: 3px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 1.2em; padding-left: 24px; }
.markdown-body blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 3px solid var(--teal); color: #31485c; background: #ebf2f9; }
.markdown-body pre { max-width: 100%; padding: 15px; overflow-x: auto; border-radius: 8px; color: #e7f0f8; background: #1c2833; font-size: 14px; }
.markdown-body code { padding: 2px 5px; border-radius: 4px; background: #e4eef7; font-size: .9em; }
.markdown-body pre code { padding: 0; background: none; }
.article-callout { margin-top: 34px; padding: 17px 19px; border: 1px solid #c4daee; border-radius: 9px; background: #ecf3f9; }
.article-callout strong { color: #304659; }
.article-callout p { margin: 5px 0 0; color: #31485c; font-size: 14px; }
.article-sidebar { padding-top: 58px; }
.sidebar-card { position: sticky; top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.related-link { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #e7f0f8; color: #375066; font-size: 14px; text-decoration: none; }
.all-guides-link { display: inline-block; margin-top: 15px; font-size: 14px; font-weight: 700; }
.admin-main { max-width: 1160px; }
.login-panel { width: min(470px, 100%); margin: 28px auto; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.login-panel h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; line-height: 1.2; }
.login-panel > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.form-stack { display: grid; gap: 17px; margin-top: 23px; }
.form-stack label, .form-grid > label { display: grid; gap: 7px; color: #32485c; font-size: 14px; font-weight: 690; }
.muted-link { color: #31485c; font-size: 14px; }
.login-panel > .muted-link { display: inline-block; margin-top: 17px; }
.notice { margin: 17px 0; padding: 12px 14px; border-radius: 7px; font-size: 14px; }
.notice-error { color: #872c32; border: 1px solid #f2d2d3; background: #fff1f1; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.admin-heading p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.admin-actions { display: flex; align-items: center; gap: 9px; }
.admin-actions form { margin: 0; }
.admin-card, .editor-form { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 20px rgba(26, 40, 53, .04); }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 12px; }
.admin-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.admin-table th { color: #31485c; background: #eff5fa; text-align: left; }
.admin-table td, .admin-table th { padding: 14px 16px; border-bottom: 1px solid #e1ecf6; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; color: #31485c; font-size: 13px; }
.status-pill { display: inline-block; padding: 4px 9px; border-radius: 20px; color: #31485c; background: #e8f1f8; font-size: 13px; font-weight: 750; }
.status-pill.is-live { color: #2f4456; background: #e3eef7; }
.admin-help { color: var(--muted); font-size: 14px; }
.editor-heading { margin: 5px 0 20px; }
.editor-heading h1 { font-size: 37px; }
.editor-heading > p:last-child { margin: 9px 0 0; color: var(--muted); }
.editor-form { padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid small { color: #31485c; font-size: 13px; font-weight: 450; }
.form-grid .wide-field { grid-column: 1 / -1; }
.form-grid textarea { min-height: 330px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; line-height: 1.6; }
.form-grid .publish-toggle { display: flex; grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.publish-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.editor-actions #delete-form { margin-left: auto; }
.delete-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin-top: 20px; padding: 15px; border: 1px solid #edd2d2; border-radius: 8px; background: #fff8f8; }
.delete-confirm label { display: flex; align-items: center; gap: 9px; color: #31485c; font-size: 14px; }
.delete-confirm input { width: 17px; height: 17px; accent-color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 35px; min-height: 0; padding-top: 65px; padding-bottom: 58px; }
  .hero-visual { max-width: 720px; }
  .services-grid, .wiki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-section { gap: 28px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .article-sidebar { padding-top: 10px; }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .content-width { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 70px; padding: 0 16px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 12px; }
  .main-nav { gap: 8px; }
  .main-nav a { font-size: 14px; }
  .main-nav .w3-button { padding: 7px 9px; }
  .hero-grid { gap: 28px; padding-top: 47px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(38px, 11vw, 51px); }
  .hero-copy { font-size: 15px; }
  .hero-visual { padding: 10px; border-radius: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .intro-section { grid-template-columns: 1fr; gap: 2px; padding-top: 51px; padding-bottom: 25px; }
  .intro-section > p { margin-top: 10px; font-size: 15px; }
  .services-section { padding-top: 28px; padding-bottom: 55px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .services-grid, .wiki-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 21px; }
  .service-card p { margin-bottom: 16px; }
  .guide-banner-inner { align-items: flex-start; flex-direction: column; padding-top: 38px; padding-bottom: 40px; }
  .footer-inner { flex-direction: column; padding-top: 29px; }
  .footer-inner > div:last-child { flex-wrap: wrap; }
  .footer-bottom { padding-bottom: 19px; }
  .wiki-main, .admin-main { min-height: 70vh; padding-top: 38px; padding-bottom: 58px; }
  .search-form { align-items: stretch; flex-direction: column; }
  .search-form .button { width: 100%; }
  .wiki-card { min-height: 0; padding: 21px; }
  .article-layout { padding-top: 29px; padding-bottom: 58px; }
  .article-figure { padding: 10px; }
  .article-heading h1 { font-size: 37px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; flex-wrap: wrap; }
  .login-panel { margin: 9px auto; padding: 24px 20px; }
  .editor-form { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .form-grid .wide-field { grid-column: auto; }
  .form-grid .publish-toggle { grid-column: auto; }
  .form-grid textarea { min-height: 260px; }
  .editor-actions { align-items: stretch; flex-direction: column; }
  .editor-actions .button { width: 100%; }
  .editor-actions #delete-form { width: 100%; margin-left: 0; }
  .delete-confirm { align-items: stretch; flex-direction: column; }
}

/* Direct service workspaces with account configuration navigation. */
.guided-manager-page { width: min(1360px, calc(100% - 48px)); padding-top: 22px; padding-bottom: 72px; }
.guided-manager-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr); align-items: center; gap: 32px; padding: 17px 0 24px; }
.guided-manager-hero .service-lede { max-width: 760px; }
.guided-manager-hero .service-status-card { margin: 0; }
.module-subnav .module-tab-button { flex: 0 0 auto; padding: 11px 15px; border: 0; border-bottom: 3px solid transparent; color: #31485c; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; }
.module-subnav .module-tab-button:hover, .module-subnav .module-tab-button.is-active { color: #3c5870; background: #eff5fa; }
.module-subnav .module-tab-button.is-active { border-bottom-color: #4d708f; }
.module-nav-kicker { flex: 0 0 auto; padding: 0 10px 0 3px; color: #31485c; font-size: 12px; font-weight: 850; letter-spacing: .13em; }
.guided-manager-layout { display: grid; grid-template-columns: minmax(238px, 290px) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 4px; }
.guided-manager-rail { position: sticky; top: 12px; padding: 22px; }
.guided-manager-rail h2 { margin-bottom: 14px; }
.config-navigation-panel { border: 1px solid #ccdff0; border-radius: 12px; background: linear-gradient(165deg, #fff, #f3f7fb); box-shadow: 0 5px 18px rgba(32, 51, 67, .06); }
.config-navigation-panel > .eyebrow { margin-bottom: 7px; }
.config-navigation-panel h2 { margin: 0; color: #253746; font-size: 21px; letter-spacing: -.03em; }
.config-navigation-intro { margin: 8px 0 15px; color: #31485c; font-size: 13px; line-height: 1.45; }
.config-nav-list { display: grid; gap: 6px; }
.config-nav-item { display: grid; width: 100%; grid-template-columns: 25px minmax(0, 1fr) 14px; align-items: center; gap: 8px; min-height: 42px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; color: #3b566d; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; text-align: left; transition: border-color .15s, color .15s, background .15s; }
.config-nav-item:hover, .config-nav-item:focus-visible { border-color: #cde0f1; color: #2f4457; background: #ebf2f9; }
.config-nav-item.is-active { border-color: #bfd8ed; color: #2d4254; background: #e4eef7; box-shadow: inset 3px 0 #456480; }
.config-nav-number { color: #31485c; font-size: 12px; font-variant-numeric: tabular-nums; }
.config-nav-arrow { color: #31485c; font-size: 17px; font-weight: 400; text-align: right; }
.config-nav-guide { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 12px 3px 0; border-top: 1px solid #d7e6f3; color: #375167; font-size: 13px; font-weight: 750; text-decoration: none; }
.config-nav-guide:hover, .config-nav-guide:focus-visible { color: #375066; }
.guided-manager-diagram { margin: 14px 0 20px; padding: 11px; border: 1px solid #deeaf5; border-radius: 9px; background: #f7fafd; }
.guided-manager-diagram img { display: block; width: 100%; max-height: 150px; object-fit: contain; }
.guided-manager-diagram figcaption { margin-top: 7px; color: #31485c; font-size: 13px; line-height: 1.45; }
.guided-manager-content { min-width: 0; }
.guided-manager-panel { min-height: 550px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(26, 40, 53, .055); }
.manager-loading { display: grid; min-height: 270px; place-content: center; justify-items: center; text-align: center; }
.manager-loading strong { margin-top: 13px; }
.manager-loading p { max-width: 300px; margin: 4px 0; color: var(--muted); font-size: 14px; }
.loading-spinner { width: 25px; height: 25px; border: 3px solid #d6e5f3; border-top-color: #415f7a; border-radius: 50%; animation: ivr-spin .75s linear infinite; }
@keyframes ivr-spin { to { transform: rotate(360deg); } }
.visual-guide-tip { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 12px; border: 1px solid #cfe1f1; border-radius: 8px; background: #f2f7fb; }
.visual-guide-tip strong { color: #304558; font-size: 14px; }
.visual-guide-tip span { color: #31485c; font-size: 13px; line-height: 1.5; }
.ivr-manager-shell { color: #263847; }
.ivr-manager-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.ivr-manager-header h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; line-height: 1.2; }
.ivr-manager-header p:not(.eyebrow) { max-width: 650px; margin: 7px 0 0; color: #31485c; font-size: 14px; }
.ivr-header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.ivr-live-badge, .ivr-domain-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #d9e7f4; border-radius: 99px; color: #31485c; background: #f5f9fc; font-size: 12px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.ivr-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #73a1ca; }
.ivr-live-badge.is-online { border-color: #b5d1ea; color: #2c4052; background: #eff5fa; }
.ivr-live-badge.is-online i, .ivr-status-dot { background: #476783; box-shadow: 0 0 0 3px rgba(66, 103, 136, .13); }
.ivr-domain-control { display: grid; gap: 3px; color: #31485c; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.ivr-domain-control select { min-width: 175px; padding: 7px 28px 7px 10px; border: 1px solid #ccdff0; border-radius: 7px; color: #253645; background: #fff; font: inherit; font-size: 14px; }
.ivr-connection { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(175px, .8fr) minmax(175px, .8fr) auto; align-items: end; gap: 12px; margin: 0 0 17px; padding: 14px; border: 1px solid #d4e5f3; border-radius: 10px; background: #f6fafd; }
.ivr-connection.is-connected { grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; border-color: #c3daee; background: #f1f6fb; }
.ivr-connection > div:first-child strong, .ivr-connection > div:nth-child(2) strong { display: block; color: #273948; font-size: 14px; }
.ivr-connection > div:first-child p, .ivr-connection > div:nth-child(2) p { margin: 3px 0 0; color: #31485c; font-size: 13px; line-height: 1.45; }
.ivr-connection label, .ivr-form-grid > label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #3d5870; font-size: 13px; font-weight: 700; }
.ivr-connection input, .ivr-form-grid input, .ivr-form-grid select, .ivr-form-grid textarea, .ivr-option-row input, .ivr-option-row select, .ivr-route-controls select, .ivr-route-controls input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cde0f0; border-radius: 7px; color: #293c4c; background: #fff; font: inherit; font-size: 14px; }
.ivr-connection input::placeholder, .ivr-form-grid input::placeholder { color: #31485c; }
.ivr-button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #cee1f1; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.ivr-button:disabled { cursor: wait; opacity: .6; }
.ivr-button-primary { border-color: #385167; color: #fff; background: #385167; }
.ivr-button-primary:hover:not(:disabled) { color: #fff; background: #2d4153; }
.ivr-button-light { color: #39536a; background: #fff; }
.ivr-button-light:hover:not(:disabled) { background: #eff5fa; }
.ivr-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.ivr-form-error { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #f2cccc; border-radius: 7px; color: #8c2931; background: #fff4f4; font-size: 14px; }
.ivr-locked { display: grid; min-height: 220px; align-content: center; justify-items: center; padding: 22px; text-align: center; }
.ivr-lock-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #385167; background: #e9f2f9; font-size: 15px; font-weight: 850; }
.ivr-locked h3 { margin: 13px 0 3px; font-size: 17px; }
.ivr-locked p { max-width: 480px; margin: 0; color: #31485c; font-size: 14px; }
.ivr-notice { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 15px; padding: 11px 38px 11px 12px; border: 1px solid #c5dbee; border-radius: 8px; color: #2b3f50; background: #f1fbf5; font-size: 14px; }
.ivr-notice.is-warning { border-color: #f0d9b4; color: #76511b; background: #fff9ed; }
.ivr-notice.is-error { border-color: #f0c7c7; color: #842b31; background: #fff3f3; }
.ivr-notice-close { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 19px; }
.ivr-one-time-password { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.ivr-one-time-password span { width: 100%; font-size: 13px; font-weight: 800; }
.ivr-one-time-password code { padding: 4px 7px; border: 1px solid #d4e3da; border-radius: 5px; color: #183b2b; background: #fff; font-size: 14px; }
.ivr-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0 20px; }
.ivr-metrics article { min-width: 0; padding: 13px; border: 1px solid #d8e7f4; border-radius: 9px; background: #fff; }
.ivr-metrics article span { display: block; color: #31485c; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.ivr-metrics article strong { display: block; margin-top: 5px; color: #263847; font-size: 25px; line-height: 1; }
.ivr-metrics article strong em { color: #31485c; font-size: 14px; font-style: normal; font-weight: 600; }
.ivr-metrics article small { display: block; margin-top: 6px; color: #31485c; font-size: 12px; }
.ivr-overview-intro, .ivr-module-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ivr-overview-intro h3, .ivr-module-heading h3, .ivr-sync-summary h3 { margin: 0; color: #283a49; font-size: 18px; letter-spacing: -.02em; line-height: 1.25; }
.ivr-overview-intro p:not(.eyebrow), .ivr-module-heading p:not(.eyebrow), .ivr-sync-summary p:not(.eyebrow) { margin: 5px 0 0; color: #31485c; font-size: 13px; line-height: 1.5; }
.ivr-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ivr-next-grid button { display: flex; min-height: 172px; flex-direction: column; align-items: flex-start; padding: 15px; border: 1px solid #d4e5f3; border-radius: 9px; color: inherit; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.ivr-next-grid button:hover { transform: translateY(-2px); border-color: #7ea9ce; }
.ivr-next-grid button > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #344c61; background: #e4eef7; font-size: 13px; font-weight: 850; }
.ivr-next-grid button strong { margin-top: 12px; font-size: 14px; }
.ivr-next-grid button small { margin-top: 5px; color: #31485c; font-size: 13px; line-height: 1.5; }
.ivr-next-grid button b { margin-top: auto; padding-top: 10px; color: #39536a; font-size: 13px; }
.ivr-sync-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 15px; border: 1px solid #d8e7f4; border-radius: 9px; background: #f6fafd; }
.ivr-sync-counts { display: grid; gap: 6px; min-width: 142px; color: #31485c; font-size: 13px; }
.ivr-sync-counts span { display: flex; align-items: center; gap: 7px; }
.ivr-sync-counts i { width: 7px; height: 7px; border-radius: 50%; background: #73a1ca; }
.ivr-sync-counts i.is-good { background: #45647f; }
.ivr-sync-counts i.is-warn { background: #da9d38; }
.ivr-module-heading { align-items: center; margin-bottom: 14px; }
.ivr-module-heading > div { min-width: 0; }
.ivr-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d7e6f4; border-radius: 8px; }
.ivr-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.ivr-table th { padding: 10px 11px; color: #31485c; background: #eef4fa; font-size: 12px; font-weight: 800; text-align: left; white-space: nowrap; }
.ivr-table td { padding: 10px 11px; border-top: 1px solid #e8f1f8; color: #31485c; vertical-align: middle; }
.ivr-table tbody tr:hover { background: #fafcfe; }
.ivr-table td strong { color: #283a4a; font-size: 13px; }
.ivr-table td small { display: block; margin-top: 3px; color: #31485c; font-size: 12px; line-height: 1.4; }
.ivr-table code { padding: 3px 6px; border-radius: 4px; color: #344d62; background: #ecf3fa; font-size: 13px; }
.ivr-state-pill { display: inline-flex; min-width: 56px; justify-content: center; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .025em; white-space: nowrap; }
.ivr-state-pill.is-good { border-color: #c5e9da; color: #364e63; background: #f0fbf6; }
.ivr-state-pill.is-bad { border-color: #f1c9c9; color: #a43c42; background: #fff4f4; }
.ivr-state-pill.is-neutral { border-color: #d7e6f4; color: #31485c; background: #f3f7fb; }
.ivr-row-actions { white-space: nowrap; }
.ivr-row-actions button { margin-right: 5px; padding: 5px 7px; border: 1px solid #d4e4f2; border-radius: 5px; color: #385167; background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.ivr-row-actions button.is-danger { color: #a33c42; }
.ivr-row-actions button:disabled { cursor: not-allowed; opacity: .45; }
.ivr-empty { padding: 34px 15px !important; text-align: center; }
.ivr-empty strong, .ivr-empty span { display: block; }
.ivr-empty span { margin: 5px 0 12px; color: #31485c; font-size: 13px; }
.ivr-table-foot { margin: 9px 0 0; color: #31485c; font-size: 12px; }
.ivr-did-table { min-width: 800px; }
.ivr-did-table td:nth-child(3) { min-width: 310px; }
.ivr-route-controls { display: grid; grid-template-columns: minmax(165px, 1fr); gap: 6px; margin-bottom: 6px; }
.ivr-route-controls [hidden] { display: none !important; }
.ivr-save-route { min-height: 28px; padding: 5px 8px; font-size: 12px; }
.ivr-error-detail { max-width: 200px; color: #a2373b !important; overflow-wrap: anywhere; }
.ivr-footnote { display: flex; gap: 9px; margin-top: 13px; padding: 11px; border-radius: 7px; color: #31485c; background: #f3f7fb; font-size: 13px; line-height: 1.5; }
.ivr-footnote strong { flex: 0 0 auto; color: #39546b; }
.ivr-task-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0 0 16px; padding: 14px; border: 1px solid #d8e7f4; border-radius: 9px; background: #f6fafd; }
.ivr-task-form label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #3d5870; font-size: 13px; font-weight: 750; }
.ivr-task-form input, .ivr-task-form select, .ivr-task-form textarea { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #cde0f0; border-radius: 6px; color: #293c4c; background: #fff; font: inherit; font-size: 13px; }
.ivr-task-wide { grid-column: 1 / -1; }
.ivr-task-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; }
.ivr-task-account { margin-left: auto; color: #31485c; font-size: 13px; }
.ivr-task-error { grid-column: 1 / -1; }
.ivr-task-table { min-width: 780px; }
.ivr-task-api-error { display: grid; gap: 5px; padding: 13px; border: 1px solid #f0c7c7; border-radius: 7px; color: #842b31; background: #fff3f3; font-size: 13px; }
.ivr-task-api-error span { color: #31485c; }

/* Direct SaaS workspaces used by broadcast, dialer, CRM, and conferencing pages. */
.sw-shell { display: grid; gap: 14px; color: #283a4a; }
.sw-header, .sw-module-head, .sw-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sw-header h2, .sw-module-head h3, .sw-overview-head h3 { margin: 0; color: #263847; letter-spacing: -.025em; }
.sw-header h2 { font-size: 21px; }
.sw-header p:not(.eyebrow), .sw-module-head p:not(.eyebrow), .sw-overview-head p:not(.eyebrow) { max-width: 680px; margin: 5px 0 0; color: #31485c; font-size: 13px; line-height: 1.55; }
.sw-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #dae8f4; border-radius: 6px; color: #31485c; background: #f6fafd; font-size: 12px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.sw-status i, .sw-connection > i { width: 8px; height: 8px; border-radius: 50%; background: #a2c1dc; }
.sw-status.is-online i, .sw-connection.is-connected > i { background: #45647f; }
.sw-login { display: grid; grid-template-columns: minmax(170px, 1.3fr) repeat(2, minmax(145px, 1fr)) auto; align-items: end; gap: 10px; padding: 13px; border: 1px solid #d4e5f3; border-radius: 9px; background: #f7fafd; }
.sw-login-copy { display: grid; gap: 4px; }
.sw-login-copy strong { color: #31475b; font-size: 14px; }
.sw-login-copy small, .sw-login label small { color: #31485c; font-size: 12px; line-height: 1.45; }
.sw-login label, .sw-sms-form label, .sw-capture-form label, .sw-form-grid label { display: grid; gap: 5px; min-width: 0; color: #31485c; font-size: 13px; font-weight: 750; }
.sw-login input, .sw-sms-form input, .sw-sms-form textarea, .sw-capture-form input, .sw-capture-form textarea, .sw-form-grid input, .sw-form-grid select, .sw-form-grid textarea { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #cee1f1; border-radius: 6px; color: #283b4b; background: #fff; font: inherit; font-size: 13px; }
.sw-login input:focus, .sw-sms-form input:focus, .sw-sms-form textarea:focus, .sw-capture-form input:focus, .sw-capture-form textarea:focus, .sw-form-grid input:focus, .sw-form-grid select:focus, .sw-form-grid textarea:focus { border-color: #588fbf; outline: 2px solid rgba(86, 132, 173, .15); }
.sw-login-error { grid-column: 1 / -1; padding: 8px 10px; border-radius: 5px; color: #932f36; background: #fff1f1; font-size: 13px; }
.sw-connection { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #d9e9e1; border-radius: 8px; background: #f5fbf7; }
.sw-connection > div { display: grid; gap: 3px; flex: 1; }
.sw-connection strong { color: #315846; font-size: 13px; }
.sw-connection small { color: #31485c; font-size: 12px; }
.sw-api-access, .crm-api-access, .cc-api-access, .ivr-api-access { display: grid; gap: 9px; margin-bottom: 16px; }
.sw-existing-key, .crm-existing-key, .cc-existing-key, .ivr-existing-key { display: flex; align-items: end; gap: 10px; padding: 10px 13px; border: 1px solid #d4e5f3; border-radius: 8px; background: #fff; }
.sw-existing-key label, .crm-existing-key label, .cc-existing-key label, .ivr-existing-key label { display: grid; flex: 1; gap: 5px; color: #31485c; font-size: 13px; font-weight: 750; }
.sw-existing-key input, .crm-existing-key input, .cc-existing-key input, .ivr-existing-key input { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #cee1f1; border-radius: 6px; color: #283b4b; background: #fff; font: inherit; font-size: 13px; }
.sw-api-key-reveal { display: grid; grid-column: 1 / -1; gap: 6px; width: 100%; margin-top: 6px; padding-top: 10px; border-top: 1px solid #d9e9e1; }
.sw-api-key-reveal span { color: #31485c; font-size: 13px; font-weight: 750; }
.sw-api-key-reveal code { overflow-wrap: anywhere; padding: 8px; border: 1px solid #d4e5f3; border-radius: 6px; color: #31475b; background: #fff; font-size: 13px; }
.crm-connection, .cc-connection { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(160px, .8fr) minmax(160px, .8fr) auto; align-items: end; gap: 10px; padding: 13px; border: 1px solid #d4e5f3; border-radius: 9px; background: #f7fafd; }
.crm-connection label, .cc-connection label { display: grid; gap: 5px; color: #31485c; font-size: 13px; font-weight: 750; }
.crm-connection input, .cc-connection input { min-width: 0; padding: 8px 9px; border: 1px solid #cee1f1; border-radius: 6px; color: #283b4b; background: #fff; font: inherit; font-size: 13px; }
.crm-connection.is-connected, .cc-connection.is-connected { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; border-color: #c3daee; background: #f1f6fb; }
.crm-connection.is-connected > div, .cc-connection.is-connected > div { display: grid; gap: 3px; }
.crm-connection.is-connected strong, .cc-connection.is-connected strong { color: #315846; font-size: 13px; }
.crm-connection.is-connected small, .cc-connection.is-connected p { margin: 0; color: #31485c; font-size: 12px; }
.crm-login-error, .cc-inline-error { grid-column: 1 / -1; color: #a52b39; font-size: 13px; }
.crm-api-access .crm-login, .cc-api-access .cc-connect-form { margin: 0; }
.cc-connection.is-connected .sw-api-key-reveal, .crm-connection.is-connected .sw-api-key-reveal { grid-column: 1 / -1; }
.sw-tabs { display: flex; gap: 3px; padding: 4px; overflow-x: auto; border: 1px solid #d7e6f3; border-radius: 8px; background: #eff5fa; scrollbar-width: thin; }
.sw-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid transparent; border-radius: 6px; color: #31485c; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; white-space: nowrap; }
.sw-tab:hover, .sw-tab.is-active { border-color: #cadef0; color: #364f64; background: #fff; }
.sw-tab span { min-width: 18px; padding: 2px 4px; border-radius: 8px; color: #31485c; background: #e9f2f9; font-size: 12px; text-align: center; }
.sw-content { min-width: 0; }
.sw-module { min-width: 0; padding: 15px; border: 1px solid #d9e7f4; border-radius: 9px; background: #fff; box-shadow: 0 5px 18px rgba(36, 56, 74, .04); }
.sw-module-head { align-items: center; margin-bottom: 12px; }
.sw-module-head h3, .sw-overview-head h3 { font-size: 16px; }
.sw-tools { display: flex; flex-wrap: wrap; gap: 7px; }
.sw-search-form { display: flex; gap: 5px; }
.sw-search-form input { width: min(180px, 25vw); min-width: 100px; padding: 7px 8px; border: 1px solid #cee1f1; border-radius: 6px; color: #283b4b; background: #fff; font: inherit; font-size: 13px; }
.sw-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 10px; border: 1px solid #d0e2f1; border-radius: 6px; color: #31485c; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; text-decoration: none; }
.sw-button:hover:not(:disabled) { border-color: #9fbfdb; background: #f3f8fc; }
.sw-button:disabled { cursor: wait; opacity: .62; }
.sw-button-primary { border-color: #385167; color: #fff; background: #385167; }
.sw-button-primary:hover:not(:disabled) { border-color: #2d4153; color: #fff; background: #2d4153; }
.sw-button-quiet, .sw-button-light { color: #31485c; background: #fff; }
.sw-overview-head { align-items: center; }
.sw-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0; }
.sw-metrics article { padding: 11px; border: 1px solid #dce9f5; border-radius: 7px; background: #f9fbfd; }
.sw-metrics article span, .sw-metrics article small { display: block; color: #31485c; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.sw-metrics article strong { display: block; margin: 5px 0; color: #263847; font-size: 22px; }
.sw-metrics article small { font-weight: 500; letter-spacing: 0; }
.sw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.sw-step-card { display: flex; min-height: 145px; flex-direction: column; align-items: flex-start; padding: 12px; border: 1px solid #d8e7f4; border-radius: 8px; color: inherit; background: #fff; cursor: pointer; text-align: left; }
.sw-step-card:hover { border-color: #7fa9ce; background: #fbfdfe; }
.sw-step-card > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: #364f64; background: #e9f1f8; font-size: 12px; font-weight: 850; }
.sw-step-card strong { margin-top: 9px; color: #2d4254; font-size: 13px; }
.sw-step-card small { margin-top: 4px; color: #31485c; font-size: 12px; line-height: 1.45; }
.sw-step-card b { margin-top: auto; padding-top: 10px; color: #385268; font-size: 12px; }
.sw-info, .sw-send-note { display: grid; gap: 3px; margin-top: 12px; padding: 10px; border: 1px solid #d3e4f2; border-radius: 7px; color: #31485c; background: #f4f8fc; font-size: 12px; line-height: 1.5; }
.sw-info strong, .sw-send-note strong { color: #375167; font-size: 13px; }
.sw-info p { margin: 0; }
.sw-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d7e6f4; border-radius: 7px; }
.sw-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.sw-table th { padding: 9px; color: #31485c; background: #eef4fa; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-align: left; white-space: nowrap; }
.sw-table td { padding: 9px; border-top: 1px solid #e8f1f8; color: #31485c; vertical-align: middle; }
.sw-row-actions { white-space: nowrap; }
.sw-row-actions button { margin-right: 4px; padding: 5px 7px; border: 1px solid #d4e4f2; border-radius: 5px; color: #385167; background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.sw-row-actions button.is-danger { color: #a33c42; }
.sw-empty { padding: 24px !important; text-align: center; }
.sw-empty strong, .sw-empty span { display: block; }
.sw-empty span { margin: 5px auto 10px; color: #31485c; font-size: 12px; }
.sw-table-foot { margin: 8px 0 0; color: #31485c; font-size: 12px; }
.sw-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #cde7da; border-radius: 7px; color: #2b3f50; background: #f1fbf5; font-size: 13px; }
.sw-notice.is-error { border-color: #f0c7c7; color: #842b31; background: #fff3f3; }
.sw-notice.is-warning { border-color: #ecd9b6; color: #76511b; background: #fff9ed; }
.sw-notice button { border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; font-size: 18px; line-height: 1; }
.sw-sms-form, .sw-capture-form, .sw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.sw-wide, .sw-form-error { grid-column: 1 / -1; }
.sw-consent { display: flex !important; grid-column: 1 / -1; align-items: flex-start; gap: 8px !important; color: #31485c; font-weight: 600 !important; }
.sw-consent input { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; accent-color: #385167; }
.sw-send-note { grid-column: 1 / -1; margin-top: 0; }
.sw-sms-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.sw-sms-results { margin-top: 15px; }
.sw-sms-results h4 { margin: 0 0 8px; color: #32485c; font-size: 14px; }
.sw-sms-balance { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; color: #285943; background: #effaf4; font-size: 13px; }
.sw-sms-form > .sw-button { justify-self: start; }
.sw-form-error { padding: 8px 10px; border-radius: 5px; color: #932f36; background: #fff1f1; font-size: 13px; }
.sw-dialog { width: min(720px, calc(100vw - 24px)); max-height: min(88vh, 820px); padding: 0; overflow: auto; border: 0; border-radius: 11px; color: #283a4a; background: #fff; box-shadow: 0 22px 70px rgba(16, 25, 32, .25); }
.sw-dialog::backdrop { background: rgba(16, 25, 33, .54); backdrop-filter: blur(2px); }
.sw-dialog form { padding: 0; }
.sw-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #deebf6; background: #fff; }
.sw-dialog-head h3 { margin: 0; font-size: 17px; }
.sw-close { width: 30px; height: 30px; border: 1px solid #d7e6f4; border-radius: 6px; color: #31485c; background: #fff; cursor: pointer; font-size: 19px; }
.sw-form-grid { padding: 15px 18px; }
.sw-dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 7px; padding: 11px 18px; border-top: 1px solid #deebf6; background: #fff; }
.sw-locked { display: grid; min-height: 160px; align-content: center; justify-items: center; padding: 20px; color: #31485c; text-align: center; }
.sw-locked strong { color: #32485c; }
.sw-locked p { max-width: 450px; margin: 5px 0 0; font-size: 13px; }
.ivr-dialog { width: min(880px, calc(100vw - 30px)); max-height: min(90vh, 920px); padding: 0; border: 0; border-radius: 12px; color: #283a4a; background: #fff; box-shadow: 0 22px 70px rgba(16, 25, 32, .25); }
.ivr-dialog::backdrop { background: rgba(16, 25, 33, .54); backdrop-filter: blur(2px); }
.ivr-dialog form { padding: 0; }
.ivr-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 22px; border-bottom: 1px solid #deebf6; background: #fff; }
.ivr-dialog-head h3 { margin: 0; font-size: 20px; }
.ivr-dialog-head p:not(.eyebrow) { margin: 4px 0 0; color: #31485c; font-size: 13px; }
.ivr-dialog-close { width: 31px; height: 31px; border: 1px solid #d7e6f4; border-radius: 7px; color: #31485c; background: #fff; cursor: pointer; font-size: 21px; line-height: 1; }
.ivr-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-height: calc(90vh - 155px); padding: 17px 22px; overflow-y: auto; }
.ivr-form-grid > label { align-self: start; }
.ivr-form-grid > label small { color: #31485c; font-size: 12px; font-weight: 500; line-height: 1.4; }
.ivr-form-wide, .ivr-options-editor { grid-column: 1 / -1; }
.ivr-form-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; min-height: 41px; padding: 9px 11px; border: 1px solid #dae8f4; border-radius: 7px; background: #f9fbfd; }
.ivr-form-check input { width: 16px !important; height: 16px; margin: 0; accent-color: #39536a; }
.ivr-input-suffix { display: flex; align-items: stretch; }
.ivr-input-suffix input { border-radius: 7px 0 0 7px !important; }
.ivr-input-suffix i { display: grid; min-width: 40px; place-items: center; border: 1px solid #cde0f0; border-left: 0; border-radius: 0 7px 7px 0; color: #31485c; background: #f5f9fc; font-size: 13px; font-style: normal; }
.ivr-options-editor { min-width: 0; padding-top: 3px; }
.ivr-option-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ivr-option-heading strong, .ivr-option-heading small { display: block; }
.ivr-option-heading strong { color: #334a5f; font-size: 14px; }
.ivr-option-heading small { margin-top: 3px; color: #31485c; font-size: 12px; }
.ivr-option-list { display: grid; gap: 7px; }
.ivr-option-row { display: grid; grid-template-columns: 70px minmax(190px, 1fr) 70px minmax(100px, .7fr) 66px 27px; align-items: end; gap: 7px; padding: 9px; border: 1px solid #dce9f5; border-radius: 8px; background: #f9fbfd; }
.ivr-option-row label { display: grid; gap: 4px; color: #31485c; font-size: 12px; font-weight: 750; }
.ivr-option-row input, .ivr-option-row select { padding: 7px 8px; font-size: 13px; }
.ivr-option-enabled { display: flex !important; align-items: center; gap: 5px !important; min-height: 32px; }
.ivr-option-enabled input { width: 14px; height: 14px; accent-color: #39536a; }
.ivr-remove-option { width: 27px; height: 29px; border: 1px solid #e5d4d4; border-radius: 6px; color: #a13d44; background: #fff; cursor: pointer; font-size: 17px; }
.ivr-dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid #deebf6; background: #fff; }
.ivr-mobile-label[hidden], .ivr-form-grid [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 960px) {
  .guided-manager-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 14px; }
  .guided-manager-rail { padding: 17px; }
  .guided-manager-panel { padding: 17px; }
  .ivr-connection { grid-template-columns: 1fr 1fr; }
  .ivr-connection > div:first-child { grid-column: 1 / -1; }
  .ivr-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ivr-option-row { grid-template-columns: 60px minmax(150px, 1fr) 60px minmax(80px, .7fr) 58px 25px; }
}
@media (max-width: 680px) {
  .guided-manager-page { width: min(100% - 24px, 600px); padding-top: 14px; padding-bottom: 44px; }
  .guided-manager-hero { grid-template-columns: 1fr; gap: 13px; }
  .guided-manager-layout { grid-template-columns: 1fr; }
  .guided-manager-rail { position: static; padding: 15px; }
  .config-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-nav-item { grid-template-columns: 20px minmax(0, 1fr) 10px; gap: 5px; min-height: 40px; padding: 6px; font-size: 13px; }
  .guided-manager-diagram { margin: 10px 0 14px; }
  .guided-manager-panel { min-height: 480px; padding: 14px; }
  .ivr-manager-header { flex-direction: column; }
  .ivr-header-tools { justify-content: flex-start; }
  .ivr-connection, .ivr-connection.is-connected { grid-template-columns: 1fr; align-items: stretch; }
  .ivr-connection > div:first-child { grid-column: auto; }
  .ivr-connection.is-connected { grid-template-columns: 10px 1fr; }
  .ivr-connection.is-connected button { grid-column: 2; justify-self: start; }
  .ivr-next-grid { grid-template-columns: 1fr; }
  .ivr-next-grid button { min-height: 140px; }
  .ivr-sync-summary { align-items: flex-start; flex-direction: column; }
  .ivr-sync-counts { grid-template-columns: 1fr 1fr; }
  .ivr-module-heading { align-items: flex-start; flex-direction: column; }
  .ivr-form-grid { grid-template-columns: 1fr; max-height: calc(90vh - 150px); padding: 14px; }
  .ivr-form-wide, .ivr-options-editor { grid-column: auto; }
  .ivr-dialog-head, .ivr-dialog-actions { padding-inline: 14px; }
  .ivr-option-row { grid-template-columns: 55px minmax(130px, 1fr) 27px; align-items: end; }
  .ivr-option-row label:nth-of-type(3), .ivr-option-row label:nth-of-type(4), .ivr-option-enabled { grid-column: span 1; }
  .ivr-remove-option { grid-column: 3; grid-row: 1; }
  .ivr-footnote { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Customer-facing SaaS modules and developer API reference */
.service-card-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.integration-pill { display: inline-flex; align-items: center; max-width: 58%; padding: 5px 9px; border-radius: 20px; color: #31485c; background: #e8f1f8; font-size: 13px; font-weight: 750; line-height: 1.2; }
.integration-pill.is-ready { color: #2b3e4f; background: #e3eef7; }
.integration-pill.is-managed { color: #70582d; background: #fbf1d9; }
.developer-banner { color: #fff; background: #31485c; }
.developer-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 51px; padding-bottom: 54px; }
.developer-banner h2, .developer-cta h2 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(28px, 3vw, 39px); letter-spacing: -.04em; line-height: 1.17; }
.developer-banner p:not(.eyebrow) { max-width: 720px; margin: 13px 0 0; color: #cadeef; }
.developers-main { padding-top: 55px; padding-bottom: 85px; }
.developers-hero { max-width: 850px; margin-bottom: 30px; }
.developers-hero h1, .service-detail-hero h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.08; }
.developers-hero > p:not(.eyebrow) { max-width: 790px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.developers-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.security-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 0 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.security-strip > div { display: grid; gap: 5px; align-content: start; min-height: 104px; padding: 20px; background: #fff; }
.security-strip strong { color: #253746; font-size: 14px; }
.security-strip span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.api-catalog-section { margin-bottom: 58px; }
.api-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.api-service-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.api-service-card .eyebrow { margin-bottom: 7px; }
.api-service-card h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.api-service-card h3 a { color: var(--ink); text-decoration: none; }
.api-service-card > p:not(.eyebrow) { min-height: 56px; margin: 9px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.api-service-card ul { margin: 0; padding: 0; list-style: none; }
.api-service-card li { padding: 7px 0; border-top: 1px solid #e7f0f8; color: #31485c; font-size: 13px; overflow-wrap: anywhere; }
.api-service-card code, .api-service-card li code { color: #334a5e; font-size: 13px; }
.content-panel, .endpoint-panel { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(26, 40, 53, .035); }
.developer-section { scroll-margin-top: 24px; }
.developer-section h2, .service-detail-grid h2, .endpoint-panel h2 { margin: 0; font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.035em; line-height: 1.2; }
.developer-section > p:not(.eyebrow), .service-detail-grid p:not(.eyebrow), .endpoint-panel p:not(.eyebrow) { max-width: 790px; color: var(--muted); font-size: 14px; }
.auth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.auth-grid article { min-width: 0; padding: 17px; border: 1px solid #e0ecf6; border-radius: 9px; background: #f8fbfd; }
.auth-grid h3 { margin: 0; font-size: 16px; }
.auth-grid p { min-height: 86px; margin: 8px 0 13px; color: var(--muted); font-size: 14px; }
.auth-grid pre, .code-sample { max-width: 100%; margin: 0; padding: 13px; overflow: auto; border-radius: 8px; color: #e7f0f8; background: #1c2833; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-sample { margin-top: 15px; }
.auth-grid pre code, .code-sample code { color: inherit; background: transparent; }
.developer-section > p code { padding: 2px 5px; border-radius: 4px; background: #e4eef7; font-size: .88em; }
.realtime-banner { display: flex; align-items: center; justify-content: space-between; gap: 34px; margin-top: 18px; padding: 30px; border-radius: 13px; color: #fff; background: linear-gradient(120deg, #243543, #344b60); }
.realtime-banner h2 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.2; }
.realtime-banner p:not(.eyebrow) { max-width: 740px; margin: 12px 0 0; color: #cadeef; font-size: 14px; }
.realtime-state { display: grid; min-width: 190px; gap: 6px; padding: 17px; border: 1px solid rgba(255,255,255,.19); border-radius: 10px; background: rgba(255,255,255,.07); }
.realtime-state strong { font-size: 14px; }
.realtime-state span:last-child { color: #b7d2ea; font-size: 13px; }
.realtime-state .status-dot { margin-bottom: 5px; }
.openapi-panel { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.openapi-panel p:not(.eyebrow) { max-width: 820px; margin-bottom: 0; }
.developer-sources { padding: 24px 3px 0; color: var(--muted); font-size: 14px; }
.developer-sources p { margin: 0; }
.service-detail-main { padding-top: 34px; padding-bottom: 80px; }
.service-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .48fr); align-items: center; gap: 40px; padding: 25px 0 38px; }
.service-lede { max-width: 740px; margin: 17px 0 0; color: var(--muted); font-size: 17px; }
.panel-action { display: grid; justify-items: start; gap: 7px; margin-top: 16px; }
.panel-action .button { min-height: 40px; }
.panel-transport-note, .panel-unavailable { max-width: 520px; color: #795424; font-size: 13px; line-height: 1.45; }
.panel-unavailable { margin: 13px 0 0; color: #31485c; }
.service-config-layout { display: grid; grid-template-columns: minmax(245px, 290px) minmax(0, 1fr); align-items: start; gap: 19px; }
.visual-guide-panel { position: sticky; top: 18px; padding: 22px; border: 1px solid #ccdff0; border-radius: 13px; background: linear-gradient(165deg, #fff 0%, #f1f6fb 100%); box-shadow: 0 10px 26px rgba(32, 51, 67, .08); }
.visual-guide-panel h2 { margin: 0; color: #253746; font-size: 22px; letter-spacing: -.035em; line-height: 1.2; }
.visual-guide-intro { margin: 10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.visual-guide-flow { display: grid; }
.visual-guide-step { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 11px; min-height: 70px; padding: 0 0 15px; }
.visual-guide-step:not(:last-child)::after { position: absolute; top: 31px; bottom: 0; left: 14px; width: 2px; background: #c6dcef; content: ""; }
.guide-step-marker { position: relative; z-index: 1; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #a6c3dd; border-radius: 10px; color: #304558; background: #e4eef7; font-size: 12px; font-weight: 850; }
.visual-guide-step div { display: grid; gap: 3px; align-content: start; padding-top: 1px; }
.visual-guide-step strong { color: #2b3f50; font-size: 14px; line-height: 1.3; }
.visual-guide-step span:last-child { color: #31485c; font-size: 13px; line-height: 1.4; }
.visual-guide-tip { display: grid; gap: 4px; margin: 2px 0 15px; padding: 12px; border: 1px solid #d0e2f2; border-radius: 8px; background: #fff; }
.visual-guide-tip strong { color: #304659; font-size: 13px; }
.visual-guide-tip span { color: #31485c; font-size: 13px; line-height: 1.4; }
.visual-guide-panel > .text-link { font-size: 13px; }
.service-config-content { min-width: 0; }
.service-status-card { display: grid; gap: 9px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.service-status-card > strong { color: #30465a; font-size: 17px; line-height: 1.35; }
.service-status-card .small-label { margin-top: 12px; color: #31485c; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.service-status-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.service-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.service-detail-grid .content-panel { margin-top: 0; }
.flow-visual-note { color: #31485c; font-size: 13px; font-weight: 700; }
.feature-list { margin: 18px 0 0; padding-left: 21px; color: #31485c; font-size: 14px; }
.feature-list li { margin: 9px 0; }
.tenant-note { margin-top: 24px; padding: 16px; border: 1px solid #c4daee; border-radius: 8px; background: #ecf3f9; }
.tenant-note strong { color: #304659; font-size: 14px; }
.tenant-note p { margin: 6px 0 0; font-size: 14px !important; }
.realtime-panel { background: #f8fbfd; }
.realtime-panel .text-link { margin-top: 9px; }
.endpoint-panel { margin-top: 18px; }
.endpoint-table-wrap { width: 100%; overflow-x: auto; }
.endpoint-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.endpoint-table th { color: #31485c; background: #eff5fa; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.endpoint-table td, .endpoint-table th { padding: 13px 12px; border-bottom: 1px solid #e1ecf6; vertical-align: top; }
.endpoint-table td:last-child { color: var(--muted); }
.endpoint-table tr:last-child td { border-bottom: 0; }
.endpoint-table code { color: #2f4558; font-size: 14px; }
.method-pill { display: inline-block; min-width: 58px; padding: 4px 7px; border-radius: 5px; color: #2d4153; background: #e4f4ed; font-size: 13px; font-weight: 800; text-align: center; }
.method-post { color: #375167; background: #e9f1f8; }
.method-patch, .method-put { color: #795d27; background: #fbf2df; }
.method-delete { color: #9a3a3a; background: #fff0f0; }
.developer-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 18px; padding: 27px; border-radius: 12px; background: #31485c; }
.developer-cta .eyebrow { color: #b0cee8; }
.developer-cta h2 { font-size: clamp(21px, 2.5vw, 30px); }

@media (max-width: 900px) {
  .api-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-strip { grid-template-columns: 1fr; }
  .security-strip > div { min-height: 0; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-grid p { min-height: 0; }
  .service-detail-hero { grid-template-columns: 1fr; gap: 18px; }
  .service-config-layout { grid-template-columns: 1fr; }
  .visual-guide-panel { position: static; }
  .visual-guide-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .visual-guide-step:nth-child(even)::after { display: none; }
}
@media (max-width: 640px) {
  .developers-main { padding-top: 38px; padding-bottom: 56px; }
  .developers-hero > p:not(.eyebrow) { font-size: 15px; }
  .developers-actions { display: grid; grid-template-columns: 1fr; }
  .api-service-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .api-service-card > p:not(.eyebrow) { min-height: 0; }
  .content-panel, .endpoint-panel { padding: 20px; }
  .realtime-banner, .openapi-panel, .developer-cta, .developer-banner-inner { align-items: flex-start; flex-direction: column; }
  .realtime-banner { padding: 22px; }
  .realtime-state { width: 100%; }
  .service-detail-main { padding-top: 22px; padding-bottom: 55px; }
  .service-detail-hero { padding-top: 12px; }
  .service-status-card { padding: 18px; }
  .visual-guide-panel { padding: 19px; }
  .visual-guide-flow { grid-template-columns: 1fr; }
  .visual-guide-step:nth-child(even)::after { display: block; }
  .visual-guide-step:last-child::after { display: none; }
  .endpoint-panel .section-heading { align-items: flex-start; flex-direction: column; }
  .developer-banner-inner { padding-top: 38px; padding-bottom: 40px; }
}

/* Tabbed service workbench inspired by the reference PBX console. */
.header-inner { min-height: 66px; padding-inline: 24px; }
.brand { gap: 9px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.brand strong { font-size: 17px; }
.brand small { font-size: 12px; }
.main-nav { gap: 14px; }
.main-nav a { white-space: nowrap; font-size: 14px; }
.service-tabs { display: flex; max-width: 100%; gap: 5px; padding: 9px max(20px, calc((100% - 1260px) / 2)); overflow-x: auto; border-top: 1px solid #e0ecf6; background: #f5f9fc; scrollbar-width: thin; scrollbar-color: #96b9d7 #e9f1f8; }
.service-tabs a { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #43627d; border-radius: 5px; color: #fff; background: #4c6e8c; font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.service-tabs a:hover, .service-tabs a:focus-visible { color: #fff; background: #39536a; }
.service-tabs a.is-active { border-color: #2d4254; color: #fff; background: #364e63; box-shadow: inset 0 -3px 0 #99bbd8; }
.module-subnav { display: flex; gap: 0; margin: 0 0 20px; overflow-x: auto; border-top: 1px solid #cfe1f1; border-bottom: 1px solid #cfe1f1; background: #fff; scrollbar-width: thin; }
.module-subnav a { flex: 0 0 auto; padding: 11px 15px; color: #31485c; font-size: 14px; font-weight: 680; text-decoration: none; white-space: nowrap; }
.module-subnav a:hover, .module-subnav a:focus-visible { color: #3c5870; background: #eff5fa; }
.service-detail-main { padding-top: 22px; }
.service-detail-hero { padding-top: 14px; padding-bottom: 24px; }
.service-detail-hero h1 { font-size: clamp(33px, 4.1vw, 48px); }
.service-status-card { box-shadow: 0 4px 16px rgba(24, 38, 50, .05); }
.service-status-card > strong { font-size: 15px; }
.visual-guide-panel { border-radius: 9px; box-shadow: 0 4px 15px rgba(32, 51, 67, .06); }
.visual-guide-panel h2 { font-size: 20px; }
.service-detail-grid .content-panel { min-height: 100%; }
.service-workspace-panel { margin-top: 0; scroll-margin-top: 14px; }
.advanced-details, .nested-details { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 4px 15px rgba(24, 38, 50, .035); }
.advanced-details > summary, .nested-details > summary { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #283b4b; cursor: pointer; list-style: none; }
.advanced-details > summary::-webkit-details-marker, .nested-details > summary::-webkit-details-marker { display: none; }
.advanced-details > summary::after, .nested-details > summary::after { content: "+"; color: #405e78; font-size: 21px; font-weight: 500; }
.advanced-details[open] > summary::after, .nested-details[open] > summary::after { content: "−"; }
.advanced-details > summary strong { display: block; font-size: 14px; }
.advanced-details > summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.advanced-badge { padding: 4px 7px; border-radius: 5px; color: #31485c; background: #e9f1f8; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.advanced-details-body { padding: 0 18px 18px; border-top: 1px solid #e8f1f8; }
.advanced-details-body > .section-heading { padding-top: 18px; }
.advanced-note { color: var(--muted); font-size: 14px; }
.developers-main { padding-top: 24px; padding-bottom: 72px; }
.developers-hero { max-width: 900px; margin: 22px 0 25px; padding: 30px; border: 1px solid #d7e6f3; border-radius: 12px; background: linear-gradient(120deg, #fff 0%, #f2f7fb 100%); box-shadow: 0 5px 18px rgba(26, 40, 53, .035); }
.developers-hero h1 { max-width: 770px; font-size: clamp(32px, 4.5vw, 50px); }
.developers-hero > p:not(.eyebrow) { max-width: 700px; font-size: 15px; }
.developers-actions { margin-top: 20px; }
.integration-workbench { display: grid; grid-template-columns: minmax(240px, 285px) minmax(0, 1fr); align-items: start; gap: 18px; }
.integration-guide { position: sticky; top: 14px; }
.integration-content { min-width: 0; }
.integration-options { margin-top: 0; }
.integration-options h2 { margin: 0; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.035em; line-height: 1.2; }
.integration-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.integration-option-grid article { min-width: 0; padding: 18px; border: 1px solid #dbe8f4; border-radius: 9px; background: #fafcfe; }
.option-number { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #30465a; background: #deebf6; font-size: 13px; font-weight: 850; }
.integration-option-grid h3 { margin: 12px 0 0; color: #263746; font-size: 16px; }
.integration-option-grid p { min-height: 60px; margin: 7px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.developer-section { margin-top: 18px; }
.developer-section h2 { font-size: clamp(21px, 2.3vw, 28px); }
.nested-details > summary { min-height: 53px; font-size: 14px; font-weight: 700; }
.nested-details-body { padding: 0 18px 18px; border-top: 1px solid #e8f1f8; }
.coverage-details { margin-top: 18px; }
.coverage-list { display: grid; }
.coverage-row { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #e2edf7; }
.coverage-row:last-child { border-bottom: 0; }
.coverage-row .eyebrow { margin: 0 0 3px; font-size: 12px; }
.coverage-row h3 { margin: 0; font-size: 14px; }
.coverage-row h3 a { color: #293c4c; text-decoration: none; }
.coverage-row > div:last-child p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.coverage-row code, .coverage-row span { color: #334a5f; font-size: 13px; overflow-wrap: anywhere; }
.developer-sources { font-size: 13px; }

@media (max-width: 900px) {
  .integration-workbench { grid-template-columns: 1fr; }
  .integration-guide { position: static; }
  .integration-guide .visual-guide-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .integration-guide .visual-guide-step { grid-template-columns: 28px 1fr; min-height: 66px; }
  .integration-guide .visual-guide-step::after { display: none; }
}
@media (max-width: 640px) {
  .content-width { width: min(100% - 30px, 560px); }
  .header-inner { min-height: 54px; padding: 8px 15px; }
  .brand { gap: 7px; }
  .brand-mark { width: 31px; height: 31px; font-size: 16px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .main-nav { gap: 9px; }
  .main-nav a { font-size: 13px; }
  .main-nav .w3-button { padding: 4px 7px; }
  .service-tabs { gap: 4px; padding: 7px 12px; }
  .service-tabs a { padding: 7px 9px; font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 25px; padding-top: 38px; padding-bottom: 40px; }
  .hero h1 { max-width: 560px; font-size: clamp(32px, 10vw, 42px); line-height: 1.06; }
  .hero-copy { margin-top: 15px; font-size: 14px; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; }
  .hero-note { font-size: 13px; }
  .hero-visual { min-height: 0; }
  .intro-section { grid-template-columns: 1fr; gap: 10px; padding-top: 32px; padding-bottom: 31px; }
  .services-section { padding-top: 32px; padding-bottom: 42px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 18px; }
  .service-card-top { align-items: flex-start; }
  .integration-pill { max-width: 54%; font-size: 12px; }
  .service-detail-hero h1 { font-size: clamp(30px, 9vw, 39px); }
  .service-lede { font-size: 14px; }
  .module-subnav { margin-bottom: 14px; }
  .module-subnav a { padding: 10px 12px; font-size: 13px; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .visual-guide-panel { padding: 17px; }
  .visual-guide-flow { grid-template-columns: 1fr; }
  .visual-guide-step { min-height: 58px; padding-bottom: 10px; }
  .visual-guide-step:nth-child(even)::after { display: block; }
  .visual-guide-step:last-child::after { display: none; }
  .developers-main { padding-top: 16px; padding-bottom: 48px; }
  .developers-hero { margin: 14px 0 18px; padding: 20px; }
  .developers-hero h1 { font-size: clamp(30px, 9vw, 39px); }
  .developers-hero > p:not(.eyebrow) { font-size: 14px; }
  .developers-actions { display: grid; grid-template-columns: 1fr; }
  .integration-guide .visual-guide-flow { grid-template-columns: 1fr; }
  .integration-option-grid { grid-template-columns: 1fr; }
  .integration-option-grid p { min-height: 0; }
  .coverage-row { grid-template-columns: 1fr; gap: 6px; }
  .content-panel, .endpoint-panel { padding: 17px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-grid p { min-height: 0; }
  .realtime-banner, .openapi-panel, .developer-banner-inner { align-items: flex-start; flex-direction: column; }
  .realtime-banner { padding: 20px; }
  .realtime-state { width: 100%; }
  .advanced-details > summary, .nested-details > summary { padding-inline: 14px; }
  .advanced-details-body, .nested-details-body { padding-inline: 14px; }
  .site-footer { padding-top: 30px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (max-width: 760px) {
  .sw-login { grid-template-columns: 1fr 1fr; }
  .sw-login-copy { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .sw-header, .sw-module-head, .sw-overview-head { align-items: stretch; flex-direction: column; }
  .sw-login, .sw-sms-form, .sw-capture-form, .sw-form-grid { grid-template-columns: 1fr; }
  .ivr-task-form { grid-template-columns: 1fr; }
  .ivr-task-wide, .ivr-task-actions, .ivr-task-error { grid-column: auto; }
  .ivr-task-actions { align-items: flex-start; flex-direction: column; }
  .ivr-task-account { margin-left: 0; }
  .sw-login-copy, .sw-wide, .sw-form-error, .sw-consent { grid-column: auto; }
  .sw-tools { width: 100%; }
  .sw-tools .sw-button { flex: 1; }
  .sw-search-form { width: 100%; }
  .sw-search-form input { width: 100%; }
  .sw-module { padding: 11px; }
  .sw-dialog-head, .sw-dialog-actions { padding-inline: 13px; }
  .sw-form-grid { padding: 13px; }
  .sw-connection { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 960px) {
  .crm-connection, .cc-connection { grid-template-columns: 1fr 1fr; }
  .crm-connection > div:first-child, .cc-connection > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .crm-connection, .cc-connection, .crm-connection.is-connected, .cc-connection.is-connected { grid-template-columns: 1fr; align-items: stretch; }
  .crm-connection.is-connected > div:first-child, .cc-connection.is-connected > div:first-child { grid-column: auto; }
  .sw-existing-key, .crm-existing-key, .cc-existing-key, .ivr-existing-key { align-items: stretch; flex-direction: column; }
  .sw-api-key-reveal { grid-column: 1; }
}

/* AI IVR keys */
.ivr-ai-key { position: relative; padding: 14px 40px 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfd; }
.ivr-ai-key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ivr-ai-key-wide { grid-column: 1 / -1; }
.ivr-ai-key select:disabled { color: var(--muted); background: #e9f2f9; cursor: not-allowed; }
.ivr-ai-key .ivr-remove-option { position: absolute; top: 8px; right: 8px; }
.ivr-ai-key label[hidden] { display: none !important; }
.ivr-ring-label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.ivr-ring-choice { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.ivr-ring-option { display: block !important; margin: 0; cursor: pointer; }
.ivr-ring-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ivr-ring-option span { display: block; padding: 8px 14px; font-size: .86rem; font-weight: 600; color: #39536a; }
.ivr-ring-option input:checked + span { color: #fff; background: var(--blue); }
.ivr-ring-option input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: -2px; }
@media (max-width: 640px) { .ivr-ai-key-grid { grid-template-columns: minmax(0, 1fr); } }
/* access tokens */
.access-tokens { margin-bottom: 24px; }
.access-token-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 16px 0; }
.access-token-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.access-token-form select, .access-token-form input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: inherit; }
.access-token-new { margin: 14px 0; padding: 14px; border: 1px solid var(--teal); border-radius: 8px; background: #f1f6fb; }
.access-token-new code { display: block; margin: 8px 0; padding: 9px 11px; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.access-token-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.access-token-table th, .access-token-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.access-token-error { color: var(--danger); }
@media (max-width: 720px) { .access-token-form { grid-template-columns: minmax(0, 1fr); } }
/* recordings */
.ivr-recording-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.ivr-recording-form label { display: flex; flex-direction: column; gap: 6px; }
.ivr-recording-form .ivr-form-error { grid-column: 1 / -1; }
@media (max-width: 640px) { .ivr-recording-form { grid-template-columns: minmax(0, 1fr); } }

/* Carrier, rates and call center pages: the same look as the IVR pages (generated from the .ivr rules) */
.crm-manager-header, .cc-manager-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.crm-manager-header h2, .cc-manager-header h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; line-height: 1.2; }
.crm-manager-header p:not(.eyebrow), .cc-manager-header p:not(.eyebrow) { max-width: 650px; margin: 7px 0 0; color: #31485c; font-size: 14px; }
.cc-status-dot { background: #476783; box-shadow: 0 0 0 3px rgba(66, 103, 136, .13); }
.crm-form-grid > label, .cc-form-grid > label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #3d5870; font-size: 13px; font-weight: 700; }
.crm-form-grid input, .cc-form-grid input, .crm-form-grid select, .cc-form-grid select, .crm-form-grid textarea, .cc-form-grid textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cde0f0; border-radius: 7px; color: #293c4c; background: #fff; font: inherit; font-size: 14px; }
.crm-form-grid input::placeholder, .cc-form-grid input::placeholder { color: #31485c; }
.crm-button, .cc-button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #cee1f1; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.crm-button:disabled, .cc-button:disabled { cursor: wait; opacity: .6; }
.crm-button-primary, .cc-button-primary { border-color: #385167; color: #fff; background: #385167; }
.crm-button-primary:hover:not(:disabled), .cc-button-primary:hover:not(:disabled) { color: #fff; background: #2d4153; }
.crm-button-light, .cc-button-quiet { color: #39536a; background: #fff; }
.crm-button-light:hover:not(:disabled), .cc-button-quiet:hover:not(:disabled) { background: #eff5fa; }
.cc-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.crm-form-error, .cc-form-error { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #f2cccc; border-radius: 7px; color: #8c2931; background: #fff4f4; font-size: 14px; }
.crm-locked, .cc-locked-state { display: grid; min-height: 220px; align-content: center; justify-items: center; padding: 22px; text-align: center; }
.crm-lock-icon, .cc-lock-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #385167; background: #e9f2f9; font-size: 15px; font-weight: 850; }
.crm-locked h3, .cc-locked-state h3 { margin: 13px 0 3px; font-size: 17px; }
.crm-locked p, .cc-locked-state p { max-width: 480px; margin: 0; color: #31485c; font-size: 14px; }
.crm-notice, .cc-notice { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 15px; padding: 11px 38px 11px 12px; border: 1px solid #c5dbee; border-radius: 8px; color: #2b3f50; background: #f1fbf5; font-size: 14px; }
.crm-notice.is-warning, .cc-notice.is-warning { border-color: #f0d9b4; color: #76511b; background: #fff9ed; }
.crm-notice.is-error, .cc-notice.is-error { border-color: #f0c7c7; color: #842b31; background: #fff3f3; }
.crm-metrics, .cc-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0 20px; }
.crm-metrics article, .cc-metric-grid article { min-width: 0; padding: 13px; border: 1px solid #d8e7f4; border-radius: 9px; background: #fff; }
.crm-metrics article span, .cc-metric-grid article span { display: block; color: #31485c; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.crm-metrics article strong, .cc-metric-grid article strong { display: block; margin-top: 5px; color: #263847; font-size: 25px; line-height: 1; }
.crm-metrics article strong em, .cc-metric-grid article strong em { color: #31485c; font-size: 14px; font-style: normal; font-weight: 600; }
.crm-metrics article small, .cc-metric-grid article small { display: block; margin-top: 6px; color: #31485c; font-size: 12px; }
.crm-overview-intro, .cc-overview-intro, .crm-module-head, .cc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.crm-overview-intro h3, .cc-overview-intro h3, .crm-module-head h3, .cc-panel-head h3 { margin: 0; color: #283a49; font-size: 18px; letter-spacing: -.02em; line-height: 1.25; }
.crm-overview-intro p:not(.eyebrow), .cc-overview-intro p:not(.eyebrow), .crm-module-head p:not(.eyebrow), .cc-panel-head p:not(.eyebrow) { margin: 5px 0 0; color: #31485c; font-size: 13px; line-height: 1.5; }
.crm-step-grid, .cc-setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.crm-step-grid button, .cc-setup-grid button { display: flex; min-height: 172px; flex-direction: column; align-items: flex-start; padding: 15px; border: 1px solid #d4e5f3; border-radius: 9px; color: inherit; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.crm-step-grid button:hover, .cc-setup-grid button:hover { transform: translateY(-2px); border-color: #7ea9ce; }
.crm-step-grid button > span, .cc-setup-grid button > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #344c61; background: #e4eef7; font-size: 13px; font-weight: 850; }
.crm-step-grid button strong, .cc-setup-grid button strong { margin-top: 12px; font-size: 14px; }
.crm-step-grid button small, .cc-setup-grid button small { margin-top: 5px; color: #31485c; font-size: 13px; line-height: 1.5; }
.crm-step-grid button b, .cc-setup-grid button b { margin-top: auto; padding-top: 10px; color: #39536a; font-size: 13px; }
.crm-module-head, .cc-panel-head { align-items: center; margin-bottom: 14px; }
.crm-module-head > div, .cc-panel-head > div { min-width: 0; }
.crm-table-wrap, .cc-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d7e6f4; border-radius: 8px; }
.crm-table, .cc-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.crm-table th, .cc-table th { padding: 10px 11px; color: #31485c; background: #eef4fa; font-size: 12px; font-weight: 800; text-align: left; white-space: nowrap; }
.crm-table td, .cc-table td { padding: 10px 11px; border-top: 1px solid #e8f1f8; color: #31485c; vertical-align: middle; }
.crm-table tbody tr:hover, .cc-table tbody tr:hover { background: #fafcfe; }
.crm-table td strong, .cc-table td strong { color: #283a4a; font-size: 13px; }
.crm-table td small, .cc-table td small { display: block; margin-top: 3px; color: #31485c; font-size: 12px; line-height: 1.4; }
.crm-table code, .cc-table code { padding: 3px 6px; border-radius: 4px; color: #344d62; background: #ecf3fa; font-size: 13px; }
.crm-pill { display: inline-flex; min-width: 56px; justify-content: center; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .025em; white-space: nowrap; }
.crm-pill.is-good { border-color: #c5e9da; color: #364e63; background: #f0fbf6; }
.crm-pill.is-bad { border-color: #f1c9c9; color: #a43c42; background: #fff4f4; }
.crm-pill.is-neutral { border-color: #d7e6f4; color: #31485c; background: #f3f7fb; }
.crm-row-actions, .cc-row-actions { white-space: nowrap; }
.crm-row-actions button, .cc-row-actions button { margin-right: 5px; padding: 5px 7px; border: 1px solid #d4e4f2; border-radius: 5px; color: #385167; background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.crm-row-actions button.is-danger, .cc-row-actions button.is-danger { color: #a33c42; }
.crm-row-actions button:disabled, .cc-row-actions button:disabled { cursor: not-allowed; opacity: .45; }
.crm-empty, .cc-empty { padding: 34px 15px !important; text-align: center; }
.crm-empty strong, .cc-empty strong, .crm-empty span, .cc-empty span { display: block; }
.crm-empty span, .cc-empty span { margin: 5px 0 12px; color: #31485c; font-size: 13px; }
.cc-table-foot { margin: 9px 0 0; color: #31485c; font-size: 12px; }
.crm-dialog, .cc-dialog { width: min(880px, calc(100vw - 30px)); max-height: min(90vh, 920px); padding: 0; border: 0; border-radius: 12px; color: #283a4a; background: #fff; box-shadow: 0 22px 70px rgba(16, 25, 32, .25); }
.crm-dialog::backdrop, .cc-dialog::backdrop { background: rgba(16, 25, 33, .54); backdrop-filter: blur(2px); }
.crm-dialog form, .cc-dialog form { padding: 0; }
.crm-dialog-head, .cc-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 22px; border-bottom: 1px solid #deebf6; background: #fff; }
.crm-dialog-head h3, .cc-dialog-head h3 { margin: 0; font-size: 20px; }
.crm-dialog-head p:not(.eyebrow), .cc-dialog-head p:not(.eyebrow) { margin: 4px 0 0; color: #31485c; font-size: 13px; }
.crm-dialog-close, .cc-dialog-close { width: 31px; height: 31px; border: 1px solid #d7e6f4; border-radius: 7px; color: #31485c; background: #fff; cursor: pointer; font-size: 21px; line-height: 1; }
.crm-form-grid, .cc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-height: calc(90vh - 155px); padding: 17px 22px; overflow-y: auto; }
.crm-form-grid > label, .cc-form-grid > label { align-self: start; }
.crm-form-grid > label small, .cc-form-grid > label small { color: #31485c; font-size: 12px; font-weight: 500; line-height: 1.4; }
.cc-form-wide { grid-column: 1 / -1; }
.crm-check, .cc-form-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; min-height: 41px; padding: 9px 11px; border: 1px solid #dae8f4; border-radius: 7px; background: #f9fbfd; }
.crm-check input, .cc-form-check input { width: 16px !important; height: 16px; margin: 0; accent-color: #39536a; }
.crm-suffix { display: flex; align-items: stretch; }
.crm-suffix input { border-radius: 7px 0 0 7px !important; }
.crm-suffix i { display: grid; min-width: 40px; place-items: center; border: 1px solid #cde0f0; border-left: 0; border-radius: 0 7px 7px 0; color: #31485c; background: #f5f9fc; font-size: 13px; font-style: normal; }
.crm-dialog-actions, .cc-dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid #deebf6; background: #fff; }
.crm-form-grid [hidden], .cc-form-grid [hidden] { display: none !important; }
.crm-metrics, .cc-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crm-manager-header, .cc-manager-header { flex-direction: column; }
.crm-step-grid, .cc-setup-grid { grid-template-columns: 1fr; }
.crm-step-grid button, .cc-setup-grid button { min-height: 140px; }
.crm-module-head, .cc-panel-head { align-items: flex-start; flex-direction: column; }
.crm-form-grid, .cc-form-grid { grid-template-columns: 1fr; max-height: calc(90vh - 150px); padding: 14px; }
.cc-form-wide { grid-column: auto; }
.crm-dialog-head, .cc-dialog-head, .crm-dialog-actions, .cc-dialog-actions { padding-inline: 14px; }
.crm-header-actions, .crm-list-tools, .crm-inline-actions, .cc-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crm-search, .crm-plan-select, .crm-lookup input, .crm-lookup select { padding: 8px 10px; border: 1px solid #cde0f0; border-radius: 7px; background: #fff; font: inherit; font-size: 14px; }
.crm-lookup { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.crm-lookup-result, .crm-rate-detail, .crm-callout, .cc-api-note { margin: 12px 0; padding: 12px 14px; border: 1px solid #d3e4f2; border-radius: 8px; background: #f6fafd; font-size: 14px; }
.cc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cc-form-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #31485c; font-size: 13px; font-weight: 700; }
.cc-form-field input, .cc-form-field select, .cc-form-field textarea, .cc-token-field input, .crm-form-grid input, .crm-form-grid select, .crm-form-grid textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cde0f0; border-radius: 7px; color: #293c4c; background: #fff; font: inherit; font-size: 14px; }
.crm-form-grid label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #31485c; font-size: 13px; font-weight: 700; }
.cc-delete { color: #aa3038; }
.cc-overview, .cc-connect-copy { margin-bottom: 14px; }.cc-tabs { padding: 6px; border: 1px solid #d3e4f2; border-radius: 10px; background: #eef4fa; }
.cc-tab { padding: 8px 12px; border: 0; border-radius: 7px; color: #31485c; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.cc-tab:hover { background: #fff; }
.cc-tab.is-active { color: #2d4254; background: #fff; box-shadow: 0 1px 3px rgba(26, 40, 53, .12); }
.cc-tab span { margin-left: 6px; }
.cc-notice:empty, .crm-notice:empty, .cc-notice[hidden], .crm-notice[hidden] { display: none; }

/* text on dark backgrounds stays light */
.footer-inner p, .footer-bottom { color: #b5d1ea; }
.hero-note { color: #b5d1ea; }
.developer-banner p:not(.eyebrow), .realtime-banner p:not(.eyebrow), .realtime-state span { color: #ccdff0; }
/* colours of the main panel's list pages (colour only, the layout stays) */
/* W3 settings: change a colour here, as in the main panel's kazitel-w3.css. --w3-theme is w3-theme-blue-grey */
:root {
  --w3-theme: #4179aa; --w3-theme-d2: #42607a; --w3-theme-l4: #d4e5f3; --w3-theme-l5: #f2f7fb; --w3-light-grey: #f1f1f1;
  --kz-button: #1b6fb5; --kz-button-hover: #175d98; --kz-button-text: #ffffff;
  --ink: #141d24; --muted: #3d5971; --canvas: #eff5fa; --line: #dbe9f5;
}
body { color: #141d24; background: #eff5fa; }
h1, h2, h3, h4 { color: #000; }
.page-intro p, .service-lede, .sw-header p, .ivr-manager-header p:not(.eyebrow), .sw-module-head p, .ivr-module-heading p:not(.eyebrow), .crm-module-head p, .cc-panel-head p, .config-navigation-intro { color: #3d5971; }
.site-header { background: #fff; border-bottom: 1px solid #dbe9f5; }
.brand, .brand strong { color: #000; }
.brand small { color: #3d5971; }
.brand-mark { color: #fff; background: var(--w3-theme); }
.main-nav a, .main-nav a:hover { color: #304558; }
.service-tabs { background: #fff; }
.service-tabs a { border-color: #dbe9f5; color: #304558; background: #fff; box-shadow: none; }
.service-tabs a:hover { color: #000; background: #eff5fa; }
.service-tabs a.is-active { border-color: var(--w3-theme); color: #fff; background: var(--w3-theme); }
.eyebrow { color: var(--w3-theme); }
.config-nav-item { color: #304558; }
.config-nav-item:hover, .config-nav-item:focus-visible { border-color: transparent; color: #000; background: #eff5fa; }
.config-nav-item.is-active { border-color: var(--w3-theme); color: #fff; background: var(--w3-theme); box-shadow: none; }
.config-nav-item.is-active * { color: #fff; }
.sw-tab.is-active, .cc-tab.is-active, .module-subnav a.is-active { color: #fff; background: var(--w3-theme); }
.sw-tab.is-active span, .cc-tab.is-active span { color: #21303d; }
.button-primary, .button-accent, .sw-button-primary, .ivr-button-primary, .crm-button-primary, .cc-button-primary { border-color: var(--kz-button); color: var(--kz-button-text); background: var(--kz-button); box-shadow: none; }
.button-primary:hover, .button-accent:hover, .sw-button-primary:hover:not(:disabled), .ivr-button-primary:hover:not(:disabled), .crm-button-primary:hover:not(:disabled), .cc-button-primary:hover:not(:disabled) { border-color: var(--kz-button-hover); color: var(--kz-button-text); background: var(--kz-button-hover); }
.sw-table th, .ivr-table th, .crm-table th, .cc-table th { color: #000; background: var(--w3-light-grey); }
.sw-table td, .ivr-table td, .crm-table td, .cc-table td { color: #141d24; border-color: #dbe9f5; }
.sw-table tbody tr:nth-child(even), .ivr-table tbody tr:nth-child(even), .crm-table tbody tr:nth-child(even), .cc-table tbody tr:nth-child(even) { background: var(--w3-light-grey); }
.sw-table tbody tr:hover, .ivr-table tbody tr:hover, .crm-table tbody tr:hover, .cc-table tbody tr:hover { background: #dbe9f5; }
.sw-row-actions button, .ivr-row-actions button, .crm-row-actions button, .cc-row-actions button { color: #0369a1; }
.sw-row-actions .is-danger, .ivr-row-actions .is-danger, .crm-row-actions .is-danger, .cc-row-actions .is-danger, .cc-delete { color: #dc2626; }


/* ==== Kazitel blue + red (same scheme as withkazi.com) ===================================== */
:root {
  --kz-brand: #1b6fb5; --kz-brand-d: #175d98; --kz-brand-soft: #e6f0fa;
  --kz-cta: #d40000; --kz-page: #e8ebef; --kz-hatch: #d9dde3;
  --blue: #1b6fb5; --teal: #1b6fb5; --navy: #10436d; --mint: #d6e5f2; --danger: #d40000;
  --kz-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --kz-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
body { font-family: var(--kz-body); background-color: var(--kz-page);
  background-image: repeating-linear-gradient(45deg, var(--kz-hatch) 0 1px, transparent 1px 7px); }
h1, h2, h3, h4, .brand strong { font-family: var(--kz-display); letter-spacing: -.01em; }
a { color: var(--kz-brand); }
a:hover { color: var(--kz-brand-d); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: var(--kz-brand); }
.eyebrow:not(.light) { color: var(--kz-brand); }
.site-header { background: #fff; }
.brand-mark { color: #fff; background: var(--kz-brand); border-radius: 50%; }
.brand strong { color: var(--kz-brand); font-weight: 800; letter-spacing: .02em; }
.main-nav a { color: var(--kz-brand); }
.service-tabs a { font-family: var(--kz-display); }
.service-tabs a.is-active, .service-tabs a[aria-current="page"] { color: #fff !important; background: var(--kz-brand) !important; border-color: var(--kz-brand) !important; }
.hero { background: linear-gradient(125deg, #10436d 0%, #1b6fb5 100%); }
.button-primary, .button-small { color: #fff; background: var(--kz-brand); }
.button-primary:hover { color: #fff; background: var(--kz-brand-d); }
.button-accent { color: #fff; background: var(--kz-cta); }
.button-accent:hover { color: #fff; background: #b30000; }
.button-secondary { color: var(--kz-brand); }
.button-danger { background: var(--kz-cta); }
.status-dot { background: #4cc58a; box-shadow: 0 0 0 4px rgba(76,197,138,.18); }
main, .content-width, .page-intro { position: relative; }
.ivr-button-primary, .cc-button-primary, .crm-button-primary, .sw-button-primary { color: #fff !important; background: var(--kz-brand) !important; border-color: var(--kz-brand) !important; }
.ivr-button-primary:hover, .cc-button-primary:hover, .crm-button-primary:hover { background: var(--kz-brand-d) !important; }

/* ==== Same frame and spacing as withkazi.com ================================================ */
.kz-sheet { max-width: 1140px; margin: 24px auto; background: #fff; border: 1px solid #d9e1ea; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); overflow: hidden; }
@media (max-width: 1180px) { .kz-sheet { margin: 0; border-left: 0; border-right: 0; } }
.kz-sheet .content-width, .kz-sheet .guided-manager-page { width: auto; max-width: none; margin-inline: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.header-inner { min-height: 0; max-width: none; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
.brand-mark { width: 44px; height: 44px; }
.brand strong { font-size: 28px; line-height: 1; }
.brand small { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .2em; font-weight: 500; }

/* menu bar like the website: plain uppercase links with dividers, active in blue */
.service-tabs { gap: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: #fff; border-top: 1px solid #d9e1ea; border-bottom: 1px solid #d9e1ea; box-shadow: 0 4px 6px -6px rgba(0,0,0,.4); }
.service-tabs a, .service-tabs a:hover, .service-tabs a:focus-visible { padding: 12px 14px; border: 0; border-radius: 0; background: transparent;
  color: #122033; font-family: "Archivo", Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .04em; box-shadow: none; }
.service-tabs a + a { border-left: 1px solid #d9e1ea; }
.service-tabs a:hover { color: var(--kz-brand); }
.service-tabs a.is-active, .service-tabs a[aria-current="page"] { color: var(--kz-brand) !important; background: transparent !important; border-color: #d9e1ea !important; box-shadow: inset 0 -2px 0 var(--kz-brand); }

/* vertical rhythm like the website: 32px page top, 48px between sections */
.hero-grid { min-height: 0; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.01em; line-height: 1.15; }
.hero-copy { font-size: 18px; margin-top: 14px; }
.hero-actions { margin-top: 24px; }
.intro-section { gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.services-section { padding-top: 24px; padding-bottom: 48px; }
.intro-copy h2, .section-heading h2, .guide-banner h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.01em; }
.page-intro h1, .admin-heading h1, .article-heading h1, .editor-heading h1 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.01em; }
.guided-manager-page { padding-top: 24px; padding-bottom: 48px; }
.guided-manager-hero { padding: 8px 0 20px; gap: 24px; }
.guided-manager-hero h1, .service-detail-main h1 { font-size: clamp(28px, 3.6vw, 38px) !important; letter-spacing: -.01em !important; line-height: 1.15 !important; }
.breadcrumbs { margin-bottom: 16px; }
.footer-inner { padding-top: 24px; padding-bottom: 20px; }
.footer-inner p { color: #9fb6cc; }
.service-tabs { flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
@media (max-width: 760px) { .service-tabs { justify-content: flex-start; } .service-tabs a { padding: 10px 12px; font-size: 13px; } .service-tabs a + a { border-left: 0; } .service-tabs a { border-right: 1px solid #d9e1ea; } }
.ivr-connection:not(.is-connected) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr) auto; }
.crm-connection, .cc-connection { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr) auto; }
@media (max-width: 860px) { .ivr-connection:not(.is-connected), .crm-connection, .cc-connection { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 761px) { .service-tabs a, .service-tabs a:hover, .service-tabs a:focus-visible { padding: 12px 11px; font-size: 13px; } }
