:root {
    --platform-blue: #00458c;
    --platform-cyan: #009fbc;
    --platform-ink: #102844;
    --platform-muted: #60748a;
    --platform-line: #d5e1ea;
    --platform-pale: #eef5f9;
    --platform-success: #18784b;
    --platform-danger: #b52e3c;
}

.platform-page { background: #f4f8fb; color: var(--platform-ink); }
.platform-page main { min-height: 56vh; }
.platform-bar { background: #fff; border-bottom: 1px solid var(--platform-line); box-shadow: 0 8px 24px rgba(20, 57, 91, .07); position: relative; z-index: 9; }
.platform-bar__inner { align-items: center; display: grid; gap: 24px; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 62px; min-width: 0; }
.platform-bar__name { color: var(--platform-blue); flex: 0 0 auto; font-family: Manrope, sans-serif; font-weight: 800; text-decoration: none; white-space: nowrap; }
.platform-bar nav { align-items: center; box-sizing: border-box; display: flex; gap: 4px; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; padding: 0; scrollbar-color: transparent transparent; scrollbar-width: none; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.platform-bar nav::-webkit-scrollbar { display: none; height: 0; width: 0; }
.platform-bar nav a { border-radius: 999px; color: var(--platform-ink); flex: 0 0 auto; font-size: .92rem; font-weight: 700; padding: 10px 12px; text-decoration: none; white-space: nowrap; }
.platform-bar nav a:hover, .platform-bar nav a[aria-current="page"] { background: #e7f6f8; color: var(--platform-blue); }
.platform-user { align-items: center; display: flex; flex: 0 0 auto; gap: 10px; white-space: nowrap; }
.platform-user span { color: var(--platform-muted); font-size: .85rem; font-weight: 700; }
.platform-user form { margin: 0; }
.platform-user button, .text-button { background: none; border: 0; color: var(--platform-blue); cursor: pointer; font: inherit; font-weight: 700; padding: 7px; }
.text-button--danger { color: var(--platform-danger); }

/* Native customer portal and explicit staff-controlled access */
.customer-portal-bar { overflow: hidden; }
.customer-portal-bar .platform-bar__inner { grid-template-columns: auto minmax(0, 1fr) auto; overflow: hidden; }
.customer-portal-bar nav { max-width: 100%; }
.customer-dashboard > .site-shell, .customer-portal-stack { display: grid; gap: 28px; }
.customer-dashboard-heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; }
.customer-dashboard-heading h2, .customer-dashboard-heading p { margin: 0; }
.customer-dashboard-heading .eyebrow { margin-bottom: 5px; }
.customer-account-summary { display: grid; gap: 24px; }
.customer-account-summary .platform-alert { margin: 0; }
.customer-dashboard-actions { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-dashboard-actions a { align-items: center; background: #eef8fa; border: 1px solid #c9e4ea; border-radius: 14px; color: var(--platform-blue); display: grid; gap: 3px 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 15px 16px; text-decoration: none; }
.customer-dashboard-actions a:hover, .customer-dashboard-actions a:focus { background: #ddf3f7; border-color: var(--platform-cyan); outline: 0; }
.customer-dashboard-actions span { font-weight: 800; }
.customer-dashboard-actions small { color: var(--platform-muted); grid-column: 1; line-height: 1.4; }
.customer-dashboard-actions strong { font-size: 1.2rem; grid-column: 2; grid-row: 1 / span 2; }
.customer-account-switcher { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; }
.customer-account-switcher label { color: var(--platform-blue); font-weight: 800; }
.customer-account-switcher select { background: #fff; border: 1px solid #b9cad8; border-radius: 10px; color: var(--platform-ink); font: inherit; min-height: 48px; padding: 10px 13px; width: 100%; }
.customer-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.customer-metric-grid article, .customer-metric-grid a { background: #fff; border: 1px solid var(--platform-line); border-radius: 18px; display: grid; gap: 7px; min-height: 150px; padding: 22px; text-decoration: none; }
.customer-metric-grid a:hover, .customer-metric-grid a:focus { border-color: var(--platform-cyan); box-shadow: 0 12px 26px rgba(0, 69, 140, .08); outline: 0; }
.customer-metric-grid span { color: var(--platform-blue); font-weight: 800; }
.customer-metric-grid strong { color: var(--platform-cyan); font-family: Manrope, sans-serif; font-size: 2.8rem; line-height: 1; margin-top: auto; }
.customer-metric-grid small { color: var(--platform-muted); }
.customer-portal-section { margin-top: 0; scroll-margin-top: 90px; }
.customer-portal-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-portal-item { background: #f7fbfd; border: 1px solid var(--platform-line); border-radius: 15px; min-width: 0; padding: 19px; }
.customer-portal-item h3 { color: var(--platform-blue); margin: 12px 0 7px; }
.customer-portal-item p { color: var(--platform-muted); margin: 0 0 7px; overflow-wrap: anywhere; }
.customer-portal-table-wrap { max-width: 100%; overflow-x: auto; }
.customer-portal-privacy-note { border-top: 1px solid var(--platform-line); margin: 18px 0 0; padding-top: 16px; }
.customer-meter-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.customer-meter-device { background: #fff; border: 1px solid var(--platform-line); border-radius: 20px; min-width: 0; padding: 22px; }
.customer-meter-device__heading { border-bottom: 1px solid var(--platform-line); margin-bottom: 18px; padding-bottom: 16px; }
.customer-meter-device__heading .eyebrow, .customer-meter-device__heading .field-help { margin: 0; }
.customer-meter-device__heading h3 { color: var(--platform-blue); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; margin: 7px 0 5px; }
.customer-meter-device__meters { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.customer-meter-card { background: #f7fbfd; border: 1px solid var(--platform-line); border-radius: 17px; min-width: 0; padding: 20px; }
.customer-meter-card .eyebrow, .customer-meter-card .field-help { margin: 0; }
.customer-meter-card .eyebrow { font-size: .9rem; margin-bottom: 14px; }
.customer-meter-current { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.customer-meter-current div { background: #fff; border: 1px solid var(--platform-line); border-radius: 12px; padding: 13px; }
.customer-meter-current dt { color: var(--platform-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.customer-meter-current dd { color: var(--platform-blue); font-size: 1.18rem; font-weight: 800; margin: 5px 0 0; }
.customer-knowledge-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(230px, 310px) minmax(0, 1fr); }
.customer-knowledge-filter { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(190px, .7fr) auto; }
.customer-knowledge-grid, .customer-knowledge-list { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-knowledge-card { background: #f7fbfd; border: 1px solid var(--platform-line); border-radius: 16px; color: var(--platform-ink); display: block; padding: 20px; text-decoration: none; }
.customer-knowledge-card:hover, .customer-knowledge-card:focus { border-color: var(--platform-cyan); box-shadow: 0 12px 26px rgba(0, 69, 140, .08); outline: 0; }
.customer-knowledge-card h2 { margin: 7px 0 8px; }
.customer-knowledge-card p:last-child { color: var(--platform-muted); margin-bottom: 0; }
.customer-knowledge-article { max-width: 920px; }
.customer-knowledge-article > .eyebrow { margin: 28px 0 6px; }
.customer-knowledge-standfirst { color: var(--platform-muted); font-size: 1.13rem; line-height: 1.7; margin: 0 0 28px; max-width: 760px; }
.customer-knowledge-content, .customer-knowledge-article__body { color: var(--platform-ink); line-height: 1.75; }
.customer-knowledge-content h2, .customer-knowledge-content h3, .customer-knowledge-article__body h2, .customer-knowledge-article__body h3 { color: var(--platform-blue); margin: 1.5em 0 .55em; }
.customer-knowledge-content a, .customer-knowledge-article__body a { color: var(--platform-blue); font-weight: 700; }
.customer-knowledge-content ul, .customer-knowledge-content ol { padding-left: 1.35rem; }
.customer-knowledge-support { align-items: center; border-top: 1px solid var(--platform-line); display: grid; gap: 6px 18px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 34px; padding-top: 24px; }
.customer-knowledge-support strong { color: var(--platform-blue); font-size: 1.15rem; }
.customer-knowledge-support p { color: var(--platform-muted); margin: 0; }
.customer-knowledge-support .button { grid-column: 2; grid-row: 1 / span 2; }
.customer-knowledge-admin-list { min-width: 0; }

.secure-link-copy { align-items: stretch; display: flex; gap: 9px; margin-top: 13px; }
.secure-link-copy input { min-width: 0; }
.customer-access-search .button { justify-self: start; }
.customer-access-results { border: 1px solid var(--platform-line); border-radius: 13px; display: grid; margin-top: 18px; max-height: 390px; overflow-y: auto; }
.customer-access-results a { background: #fff; border-top: 1px solid var(--platform-line); color: var(--platform-ink); display: grid; gap: 4px; padding: 13px 15px; text-decoration: none; }
.customer-access-results a:first-child { border-top: 0; }
.customer-access-results a:hover, .customer-access-results a:focus { background: #eaf6f8; box-shadow: inset 4px 0 0 var(--platform-cyan); outline: 0; }
.customer-access-results strong { color: var(--platform-blue); }
.customer-access-results span { color: var(--platform-muted); font-size: .84rem; }
.customer-access-user__heading { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; }
.customer-access-user__heading h3, .customer-access-user__heading p { margin: 0; overflow-wrap: anywhere; }
.customer-access-user__heading p, .customer-access-user > p { color: var(--platform-muted); }
.customer-login-directory-filter { align-items: end; background: #f2f8fb; border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 12px; grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) auto auto; margin-bottom: 18px; padding: 15px; }
.customer-login-directory-filter label { align-self: stretch; color: var(--platform-ink); display: grid; font-size: .82rem; font-weight: 800; gap: 6px; grid-template-rows: minmax(1.15rem, auto) 46px; margin: 0; }
.customer-login-directory-filter input, .customer-login-directory-filter select { align-self: end; background: #fff; border: 1px solid #b9cad8; border-radius: 10px; box-sizing: border-box; color: var(--platform-ink); font: inherit; height: 46px; margin: 0; min-height: 46px; padding: 10px 12px; width: 100%; }
.customer-login-directory-filter > .button { align-self: end; height: 46px; margin: 0; min-height: 46px; }
.agreement-vantage-panel .record-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 0; }
.agreement-vantage-panel .record-grid > div { background: #f2f8fb; border: 1px solid var(--platform-line); border-radius: 12px; padding: 15px; }
.agreement-vantage-panel .record-grid dt { color: var(--platform-muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agreement-vantage-panel .record-grid dd { color: var(--platform-ink); font-weight: 800; margin: 5px 0 0; }
.agreement-vantage-form { margin-top: 22px; max-width: 760px; }
.agreement-vantage-form .checkbox-label { align-items: flex-start; display: flex; gap: 10px; }
.agreement-vantage-form .checkbox-label input { flex: 0 0 auto; height: 18px; margin: 3px 0 0; min-height: 18px; width: 18px; }
.vantage-customer-choice { border: 0; display: grid; gap: 12px; margin: 0; padding: 0; }
.vantage-customer-choice legend { color: var(--platform-ink); font-size: 1rem; font-weight: 800; margin-bottom: 2px; }
.vantage-customer-choice label { align-items: flex-start; background: #f2f8fb; border: 1px solid var(--platform-line); border-radius: 12px; cursor: pointer; display: flex; gap: 12px; padding: 15px 16px; }
.vantage-customer-choice label:has(input:checked) { background: #e6f7fb; border-color: var(--platform-cyan); box-shadow: 0 0 0 1px var(--platform-cyan); }
.vantage-customer-choice input { flex: 0 0 auto; height: 18px; margin: 3px 0 0; min-height: 18px; width: 18px; }
.vantage-customer-choice span { display: grid; gap: 3px; }
.vantage-customer-choice strong { color: var(--platform-ink); }
.vantage-customer-choice small { color: var(--platform-muted); font-size: .9rem; font-weight: 500; line-height: 1.45; }
.platform-details { border-top: 1px solid var(--platform-line); margin-top: 24px; padding-top: 18px; }
.platform-details summary { color: var(--platform-blue); cursor: pointer; font-weight: 800; }
.platform-details p { margin-bottom: 0; }
.customer-login-directory { border: 1px solid var(--platform-line); border-radius: 15px; overflow: hidden; }
.customer-login-row { background: #fff; border-top: 1px solid var(--platform-line); }
.customer-login-row:first-child { border-top: 0; }
.customer-login-row > summary { align-items: center; cursor: pointer; display: grid; gap: 15px; grid-template-columns: minmax(230px, 1.4fr) 90px minmax(150px, .75fr) auto 18px; list-style: none; padding: 16px 18px; transition: background .2s ease; }
.customer-login-row > summary::-webkit-details-marker { display: none; }
.customer-login-row > summary:hover, .customer-login-row > summary:focus { background: #edf7fa; outline: 0; }
.customer-login-row[open] > summary { background: #e8f5f8; box-shadow: inset 4px 0 0 var(--platform-cyan); }
.customer-login-row__person, .customer-login-row__accounts, .customer-login-row__last { display: grid; gap: 3px; min-width: 0; }
.customer-login-row__person strong { color: var(--platform-blue); font-size: 1rem; overflow-wrap: anywhere; }
.customer-login-row__person small, .customer-login-row__accounts small, .customer-login-row__last small { color: var(--platform-muted); overflow-wrap: anywhere; }
.customer-login-row__accounts { text-align: center; }
.customer-login-row__accounts strong { color: var(--platform-blue); font-size: 1.15rem; }
.customer-login-row__last strong { color: var(--platform-ink); font-size: .85rem; }
.customer-login-row__toggle { border: solid var(--platform-blue); border-width: 0 2px 2px 0; height: 8px; transform: rotate(45deg); transition: transform .2s ease; width: 8px; }
.customer-login-row[open] .customer-login-row__toggle { transform: rotate(225deg) translate(-2px, -2px); }
.customer-login-row__details { background: #f8fbfd; border-top: 1px solid var(--platform-line); padding: 8px 18px 18px; }
.customer-login-row__details > .form-actions { margin-top: 14px; }
.customer-login-pagination { align-items: center; color: var(--platform-muted); display: flex; font-size: .86rem; font-weight: 700; justify-content: space-between; margin-top: 16px; }
.customer-login-pagination > div { display: flex; gap: 9px; }
.platform-check-list { display: grid; gap: 10px; line-height: 1.55; margin: 18px 0 22px; padding-left: 1.25rem; }
.platform-check-list li::marker { color: var(--platform-cyan); }
.customer-access-memberships { list-style: none; margin: 16px 0; padding: 0; }
.customer-access-memberships li { border-top: 1px solid var(--platform-line); display: grid; gap: 12px; padding: 14px 0; }
.customer-access-memberships li:first-child { border-top: 0; }
.customer-access-memberships span { display: grid; gap: 2px; }
.customer-access-memberships small { color: var(--platform-muted); }
.customer-access-user form { margin: 0; }
.customer-access-permissions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px 14px; }
.customer-access-permissions > label { align-items: center; color: var(--platform-muted); display: inline-flex; font-size: .82rem; font-weight: 700; gap: 6px; }
.customer-access-permissions .button { margin-left: auto; }
.customer-access-permissions > .customer-site-scope { flex: 1 0 100%; }
.customer-access-membership-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.customer-site-scope { border: 1px solid var(--platform-line); border-radius: 14px; display: grid; gap: 11px; margin: 8px 0; padding: 15px; width: 100%; }
.customer-site-scope legend { color: var(--platform-blue); font-size: .92rem; font-weight: 800; padding: 0 7px; }
.platform-page fieldset.customer-site-scope { box-sizing: border-box; height: auto; min-height: 0; overflow: visible; }
.platform-page .customer-site-scope > legend { box-sizing: border-box; height: auto; line-height: 1.4; width: auto; }
.platform-page .customer-site-scope input[type="radio"],
.platform-page .customer-site-scope input[type="checkbox"],
.platform-page .checkbox-line input[type="radio"],
.platform-page .checkbox-line input[type="checkbox"] { float: none; height: auto; margin: 0; min-height: 0; width: auto; }
.customer-site-choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-site-choice-grid > label { align-items: flex-start; background: #fff; border: 1px solid var(--platform-line); border-radius: 11px; color: var(--platform-ink); display: flex; font-size: .84rem; font-weight: 700; gap: 9px; min-width: 0; padding: 11px; }
.customer-site-choice-grid > label > input { flex: 0 0 auto; margin-top: 3px; }
.customer-site-choice-grid span { display: grid; gap: 2px; min-width: 0; }
.customer-site-choice-grid strong, .customer-site-choice-grid small { overflow-wrap: anywhere; }
.customer-site-choice-grid small { color: var(--platform-muted); font-size: .74rem; font-weight: 600; }
.customer-access-request-list { display: grid; gap: 14px; }
.customer-access-request { background: #f7fbfd; border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
.customer-access-request h3, .customer-access-request p { margin: 0; }
.customer-access-request p { color: var(--platform-muted); overflow-wrap: anywhere; }
.customer-access-request__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.customer-access-request__actions { align-content: start; display: grid; gap: 8px; grid-template-columns: repeat(2, auto); }
.customer-access-request__actions .button { min-width: 0; }
.customer-document-link-form { align-items: end; display: grid; gap: 16px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; margin: 24px 0; }

.platform-hero { background: linear-gradient(120deg, var(--platform-blue), #0067a5); color: #fff; padding: clamp(48px, 6vw, 86px) 0; position: relative; overflow: hidden; }
.platform-hero::after { background: radial-gradient(circle, rgba(0, 159, 188, .54), transparent 65%); content: ""; height: 460px; position: absolute; right: -80px; top: -170px; width: 460px; }
.platform-hero--compact { padding: clamp(38px, 4vw, 62px) 0; }
.platform-hero .site-shell { position: relative; z-index: 1; }
.platform-hero .eyebrow { color: #76ecff; }
.platform-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 4.6rem); letter-spacing: -.055em; margin: 5px 0 14px; max-width: 900px; }
.platform-hero p:not(.eyebrow) { color: rgba(255, 255, 255, .84); font-size: 1.08rem; margin: 0; max-width: 720px; }
.platform-hero__split { align-items: center; display: flex; justify-content: space-between; gap: 40px; }
.platform-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.platform-hero__actions--overview { display: grid; flex: 0 0 260px; grid-template-columns: 1fr; width: min(260px, 100%); }
.platform-hero__actions--overview .button { align-items: center; font-size: .88rem; min-height: 56px; padding-inline: 12px; text-align: center; white-space: nowrap; }
.platform-hero .button--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.platform-hero .button--outline:hover { background: #fff; color: var(--platform-blue); }

.platform-section { padding: clamp(40px, 5vw, 76px) 0; }
.platform-narrow { max-width: 900px; }
.platform-login-wrap { display: flex; justify-content: center; }
.platform-login-card { max-width: 560px; width: 100%; }
.platform-login-form { margin-bottom: 18px; }
.platform-login-form .button { margin-top: 5px; width: 100%; }
.platform-login-recovery { margin: 0 0 26px; text-align: center; }
.platform-login-help { border-top: 1px solid var(--platform-line); margin: 0; padding-top: 20px; }
.platform-grid { display: grid; gap: 24px; }
.platform-grid--sidebar { grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); align-items: start; }
.platform-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-card { background: #fff; border: 1px solid var(--platform-line); border-radius: 22px; box-shadow: 0 20px 46px rgba(28, 63, 92, .08); padding: clamp(22px, 3vw, 38px); }
.platform-card--spaced { margin-top: 24px; }
.platform-card--success { border-top: 5px solid var(--platform-success); }
.platform-card h2 { color: var(--platform-blue); font-size: clamp(1.45rem, 2vw, 2rem); margin: 0 0 18px; }
.platform-card h3 { color: var(--platform-ink); }
.card-heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 22px; }
.card-heading .eyebrow { margin-bottom: 4px; }
.card-heading h2 { margin: 0; }
.card-heading h2 + .platform-help { margin: 11px 0 0; }
.platform-help, .field-help { color: var(--platform-muted); font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.platform-alert { background: #edf5fa; border-left: 4px solid var(--platform-blue); border-radius: 9px; margin: 0 0 20px; padding: 15px 18px; }
.platform-alert--success { background: #e8f7ef; border-color: var(--platform-success); color: #105c3a; }
.platform-alert--warning { background: #fff8e4; border-color: #d99a13; color: #684b0c; }
.platform-alert--error { background: #fff0f1; border-color: var(--platform-danger); color: #78202a; }
.platform-alert code { overflow-wrap: anywhere; }

.platform-form { display: grid; gap: 17px; }
.platform-form label, .field { color: var(--platform-ink); display: grid; font-size: .92rem; font-weight: 700; gap: 7px; }
.platform-form .checkbox-line { align-items: center; background: #eef8fa; border: 1px solid #c9e4ea; border-radius: 11px; display: flex; gap: 10px; padding: 12px 14px; }
.platform-form .checkbox-line input { flex: 0 0 auto; }
.platform-form input:not([type="checkbox"]):not([type="radio"]), .platform-form textarea, .platform-form select,
.platform-input { background: #fff; border: 1px solid #b9cad8; border-radius: 10px; box-sizing: border-box; color: var(--platform-ink); font: inherit; margin: 0 !important; min-height: 48px; padding: 11px 13px; width: 100%; }
.platform-form textarea { min-height: 112px; resize: vertical; }
.platform-form input:focus, .platform-form textarea:focus, .platform-form select:focus, .platform-input:focus { border-color: var(--platform-cyan); box-shadow: 0 0 0 3px rgba(0, 159, 188, .14); outline: 0; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row--linked-textareas > label { grid-template-rows: auto minmax(112px, 1fr); }
.field-row--linked-textareas textarea { height: 100%; }
.address-field { align-content: start; display: grid; gap: 10px; min-width: 0; }
.address-field > label:first-child { grid-template-rows: auto minmax(112px, 1fr); }
.address-copy { color: var(--platform-muted) !important; font-size: .82rem !important; font-weight: 650 !important; margin-top: 1px; }
.customer-profile-picker { background: #eaf6f8; border: 1px solid #cbe6ec; border-radius: 13px; display: grid; gap: 8px; margin-bottom: 19px; padding: 15px 16px; }
.customer-profile-picker .field-help { margin: 0; }
.customer-picker-combobox { position: relative; }
.customer-picker-combobox > input { background: #fff; padding-right: 44px; }
.customer-picker-combobox::after { border: solid var(--platform-blue); border-width: 0 2px 2px 0; content: ''; height: 8px; pointer-events: none; position: absolute; right: 18px; top: 18px; transform: rotate(45deg); width: 8px; }
.customer-picker-results { background: #fff; border: 1px solid #9ebdce; border-radius: 0 0 12px 12px; box-shadow: 0 16px 30px rgba(0, 69, 140, .14); left: 0; max-height: 330px; overflow-y: auto; position: absolute; right: 0; top: calc(100% - 2px); z-index: 30; }
.customer-picker-results[hidden] { display: none; }
.customer-picker-results__empty { color: var(--platform-muted); margin: 0; padding: 15px; }
.customer-picker-option { background: #fff; border: 0; border-top: 1px solid var(--platform-line); color: var(--platform-ink); cursor: pointer; display: grid; font: inherit; gap: 4px; padding: 12px 14px; text-align: left; width: 100%; }
.customer-picker-option:first-child { border-top: 0; }
.customer-picker-option:hover, .customer-picker-option:focus, .customer-picker-option.is-active { background: #eaf6f8; box-shadow: inset 4px 0 0 var(--platform-cyan); outline: 0; }
.customer-picker-option__heading { align-items: start; display: flex; gap: 12px; justify-content: space-between; }
.customer-picker-option__heading strong { color: var(--platform-blue); }
.customer-picker-option__heading b { background: #daf4f8; border-radius: 999px; color: var(--platform-blue); flex: 0 0 auto; font-size: .7rem; letter-spacing: .03em; padding: 4px 8px; text-transform: uppercase; }
.customer-picker-option small { color: var(--platform-muted); font-size: .79rem; line-height: 1.45; }
.customer-picker-option--on-stop .customer-picker-option__heading b { background: #fff0f0; color: var(--platform-danger); }
.customer-picker-status { color: var(--platform-muted); font-size: .82rem; font-weight: 700; margin: 0; min-height: 1.25em; }
.customer-picker-status--loading { color: var(--platform-blue); }
.customer-picker-status--success { color: var(--platform-success); }
.customer-picker-status--error { color: var(--platform-danger); }
.companies-house-lookup { display: grid; gap: 13px; }
.field-row--company-lookup { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-search-field { align-content: start; }
.company-search-field .button { justify-self: start; min-height: 48px; white-space: nowrap; }
.company-search-control { align-items: stretch; display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr); }
.company-search-control .button { align-items: center; justify-self: start; min-height: 48px; white-space: nowrap; }
.companies-house-lookup__guide { background: #eef7fa; border-left: 4px solid var(--platform-cyan); border-radius: 0 12px 12px 0; color: var(--platform-muted); font-size: .88rem; line-height: 1.55; padding: 13px 15px; }
.companies-house-lookup__guide strong { color: var(--platform-blue); }
.companies-house-lookup__guide p { margin: 5px 0 0; }
.companies-house-lookup__status { color: var(--platform-muted); font-size: .86rem; font-weight: 700; margin: -2px 0 0; min-height: 1.35em; }
.companies-house-lookup__status--loading { color: var(--platform-blue); }
.companies-house-lookup__status--success { color: var(--platform-success); }
.companies-house-lookup__status--error { color: var(--platform-danger); }
.companies-house-lookup__results { background: #fff; border: 1px solid var(--platform-line); border-radius: 13px; display: grid; overflow: hidden; }
.companies-house-lookup__results[hidden] { display: none; }
.companies-house-lookup__results-heading { background: var(--platform-pale); color: var(--platform-blue); font-size: .82rem; font-weight: 800; letter-spacing: .04em; margin: 0; padding: 11px 14px; text-transform: uppercase; }
.companies-house-result { background: #fff; border: 0; border-top: 1px solid var(--platform-line); color: var(--platform-ink); cursor: pointer; display: grid; font: inherit; gap: 3px; padding: 13px 15px; text-align: left; width: 100%; }
.companies-house-result:hover, .companies-house-result:focus { background: #eaf6f8; outline: 0; }
.companies-house-result:focus { box-shadow: inset 4px 0 0 var(--platform-cyan); }
.companies-house-result strong { color: var(--platform-blue); }
.companies-house-result span { font-size: .84rem; font-weight: 750; text-transform: capitalize; }
.companies-house-result small { color: var(--platform-muted); font-size: .8rem; }
.companies-house-result[disabled] { cursor: wait; opacity: .6; }
.field-optional { color: var(--platform-muted); font-size: .78rem; font-weight: 500; }
.password-rules { background: var(--platform-pale); border-radius: 10px; margin: 0; padding: 12px 14px; }
.check-field { align-items: flex-start !important; display: flex !important; gap: 10px !important; line-height: 1.45; }
.check-field input { flex: 0 0 auto; height: 20px; margin-top: 1px; width: 20px; }
.form-section { border: 0; border-top: 1px solid var(--platform-line); margin: 14px 0 0; padding: 26px 0 0; }
.form-section legend { color: var(--platform-blue); font-family: Manrope, sans-serif; font-size: 1.25rem; font-weight: 800; padding-right: 16px; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.agreement-pdf-actions { gap: 14px; margin: 22px 0 8px; }
.agreement-pdf-fingerprint { margin: 0; }
.agreement-pdf-hash { color: inherit; display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .78rem; line-height: 1.55; margin-top: 3px; overflow-wrap: anywhere; white-space: normal; word-break: break-all; }
.agreement-next-actions form { margin: 0; }
.button { background: var(--platform-cyan); border: 1px solid var(--platform-cyan); border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font-weight: 800; justify-content: center; line-height: 1.2; padding: 14px 22px; text-align: center; text-decoration: none; }
.button:hover, .button:focus { background: var(--platform-blue); border-color: var(--platform-blue); color: #fff; }
.button--outline { background: transparent; border-color: var(--platform-blue); color: var(--platform-blue); }
.button--small { font-size: .86rem; padding: 9px 14px; }
.button--tiny { font-size: .76rem; min-height: 34px; padding: 7px 11px; }
.button--danger { background: #fff; border-color: var(--platform-danger); color: var(--platform-danger); }
.button[disabled] { cursor: not-allowed; opacity: .52; }
.text-link { color: var(--platform-blue); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.metric-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.metric-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { background: #fff; border: 1px solid var(--platform-line); border-radius: 20px; color: var(--platform-ink); display: grid; min-height: 190px; padding: 26px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.metric-card:hover { box-shadow: 0 18px 40px rgba(18,55,84,.12); transform: translateY(-3px); }
.metric-card span { color: var(--platform-blue); font-weight: 800; }
.metric-card strong { color: var(--platform-cyan); font-family: Manrope, sans-serif; font-size: 3.6rem; line-height: 1; margin-top: auto; }
.metric-card small { color: var(--platform-muted); }

.data-table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; }
.data-table th { color: var(--platform-muted); font-size: .76rem; letter-spacing: .08em; padding: 10px 12px; text-align: left; text-transform: uppercase; }
.data-table td { border-top: 1px solid var(--platform-line); padding: 15px 12px; vertical-align: middle; }
.data-table td a { color: var(--platform-blue); font-weight: 800; }
.data-table small { color: var(--platform-muted); }
.status-badge { background: #eef3f7; border-radius: 999px; color: var(--platform-ink); display: inline-flex; font-size: .77rem; font-weight: 800; padding: 6px 9px; white-space: nowrap; }
.status-badge--active, .status-badge--completed, .status-badge--submitted, .status-badge--actioned, .status-badge--mail-sent, .status-badge--reviewed { background: #e1f6ea; color: #12633d; }
.status-badge--previous { background: #edf0f4; color: #53677a; }
.status-badge--draft, .status-badge--invited, .status-badge--new, .status-badge--open, .status-badge--mail-pending { background: #fff4d7; color: #77550d; }
.status-badge--sent, .status-badge--customer-verified, .status-badge--customer-signed, .status-badge--mandate-pending, .status-badge--awaiting-countersign { background: #e4f3fa; color: #07557f; }
.status-badge--assigned { background: #edf2f6; color: #425d73; }
.status-badge--scheduled { background: #dff4f8; color: #00546a; }
.status-badge--on-site { background: #fff0c6; color: #76520a; }
.status-badge--disabled, .status-badge--cancelled, .status-badge--declined, .status-badge--mail-failed { background: #f7e4e6; color: #8b2530; }
.empty-state { color: var(--platform-muted); padding: 28px 8px; text-align: center; }

.copy-field { align-items: stretch; display: flex; gap: 8px; margin-top: 12px; }
.copy-field input { background: #fff; border: 1px solid var(--platform-line); border-radius: 8px; flex: 1; min-width: 0; padding: 10px; }
.copy-field button { background: var(--platform-blue); border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 800; padding: 0 15px; }
.invite-list { display: grid; gap: 10px; margin: 20px 0; }
.invite-list div { background: var(--platform-pale); border-radius: 10px; display: grid; gap: 3px; padding: 12px; }
.invite-list span { color: var(--platform-muted); }
.terms-list { display: grid; gap: 14px; }
.terms-type-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.terms-row { align-items: center; border: 1px solid var(--platform-line); border-radius: 12px; display: flex; gap: 18px; justify-content: space-between; padding: 17px; }
.terms-row p { color: var(--platform-muted); margin: 5px 0; }
.terms-row small { display: block; font-family: monospace; overflow-wrap: anywhere; }
.terms-row__title { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.filter-bar { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(220px, 1fr) minmax(210px, 260px) auto; margin-bottom: 18px; }
.filter-field { color: var(--platform-ink); display: grid; font-size: .9rem; font-weight: 800; gap: 8px; margin: 0; }
.filter-field .platform-input { display: block; height: 48px; margin: 0; }
.filter-submit { height: 48px; min-width: 78px; }
.table-actions { align-items: center; display: flex; gap: 8px; }
.table-actions form { margin: 0; }
.inline-role-form { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; min-width: 190px; }
.inline-role-form .platform-input { font-size: .86rem; min-height: 40px; padding: 8px 10px; }
.inline-role-form .text-button { font-size: .82rem; }
.account-actions { display: grid; gap: 7px; min-width: 170px; }
.account-actions form { margin: 0; }
.danger-details { border-top: 1px solid var(--platform-line); margin-top: 20px; padding-top: 16px; }
.danger-details summary { color: var(--platform-danger); cursor: pointer; font-weight: 800; }
.danger-details .platform-form { margin-top: 15px; }
.permission-list { display: grid; gap: 0; margin: 14px 0 0; }
.permission-list div { border-top: 1px solid var(--platform-line); padding: 12px 0; }
.permission-list dt { color: var(--platform-blue); font-weight: 800; }
.permission-list dd { color: var(--platform-muted); font-size: .9rem; line-height: 1.5; margin: 3px 0 0; }
.editor-toolbar { background: var(--platform-pale); border: 1px solid var(--platform-line); border-bottom: 0; border-radius: 10px 10px 0 0; display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; }
.editor-toolbar button { background: #fff; border: 1px solid var(--platform-line); border-radius: 6px; color: var(--platform-ink); cursor: pointer; font: inherit; font-size: .82rem; padding: 7px 9px; }
.article-editor { border: 1px solid #b9cad8; border-radius: 0 0 10px 10px; font-weight: 400; line-height: 1.65; min-height: 460px; padding: 18px; }
.article-editor:focus { border-color: var(--platform-cyan); box-shadow: 0 0 0 3px rgba(0,159,188,.14); outline: 0; }
.terms-editor { min-height: 980px; }
.terms-editor h2 { border-top: 1px solid var(--platform-line); color: var(--platform-blue); font-size: 1.25rem; margin: 32px 0 12px; padding-top: 14px; }
.terms-editor h3 { color: var(--platform-blue); font-size: 1.05rem; }
.terms-editor .terms-identity { background: #e8f6f8; border-left: 4px solid var(--platform-cyan); border-radius: 0 10px 10px 0; padding: 12px 15px; }
.terms-web-viewer { height: min(82vh, 960px); }
.insight-preview { aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; width: 100%; }
.tick-list { display: grid; gap: 10px; list-style: none; padding: 0; }
.tick-list li { padding-left: 28px; position: relative; }
.tick-list li::before { color: var(--platform-cyan); content: "✓"; font-weight: 900; left: 0; position: absolute; }

.workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0; }
.workflow-step { border-top: 3px solid var(--platform-line); color: var(--platform-muted); padding: 12px 12px 0 0; }
.workflow-step strong { color: var(--platform-ink); display: block; }
.workflow-step--done { border-color: var(--platform-success); }
.workflow-step--current { border-color: var(--platform-cyan); }
.detail-list { display: grid; gap: 0; }
.detail-list div { border-top: 1px solid var(--platform-line); display: grid; gap: 14px; grid-template-columns: minmax(130px, .7fr) 2fr; padding: 13px 0; }
.detail-list dt { color: var(--platform-muted); font-weight: 700; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.audit-list { display: grid; gap: 0; }
.audit-event { border-top: 1px solid var(--platform-line); display: grid; gap: 12px; grid-template-columns: 50px 180px minmax(180px, 1fr) 2fr; padding: 13px 0; }
.audit-event code { font-size: .72rem; overflow-wrap: anywhere; }

.agreement-form__main { display: grid; gap: 24px; }
.agreement-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(310px, 370px); }
.agreement-form .form-section--panel { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 16px; display: flex; flex-direction: column; gap: 18px; margin: 0; min-width: 0; padding: 24px; }
.agreement-form .form-section__title { border-bottom: 1px solid var(--platform-line); color: var(--platform-blue); font-family: Manrope, sans-serif; font-size: 1.32rem; line-height: 1.2; margin: 0; padding: 0 0 12px; }
.agreement-form .form-section--panel > .field-help { margin: -2px 0 0; }
.agreement-form .field-row { align-items: stretch; }
.agreement-form .field-row > label { align-content: start; grid-template-rows: auto 48px; height: auto; }
.agreement-form .field-row--three > label { grid-template-rows: minmax(2.75em, auto) 48px; }
.agreement-form .field-row--control-aligned > label { align-content: end; grid-template-rows: auto 48px; }
.agreement-form .field-row--linked-textareas > label { grid-template-rows: auto minmax(112px, 1fr); }
.platform-page .agreement-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.platform-page .agreement-form select { height: 48px !important; line-height: 1.2; margin: 0 !important; min-height: 48px !important; }
.agreement-form textarea { min-height: 104px; }
.agreement-summary { position: sticky; top: 24px; }
.agreement-summary__links, .agreement-summary__actions { align-items: stretch; flex-direction: column; }
.agreement-summary__links .button, .agreement-summary__actions .button { width: 100%; }
.agreement-summary__exit { margin-top: 8px; }
.agreement-summary__links .text-link { padding: 7px 4px; text-align: center; }
.agreement-summary__notice { margin: 24px 0; }
.agreement-summary .secure-link-panel { border-top: 1px solid var(--platform-line); margin-top: 26px; padding-top: 24px; }
.platform-card > .secure-link-panel:first-child { border-bottom: 1px solid var(--platform-line); margin-bottom: 24px; padding-bottom: 24px; }
.direct-debit-field .check-field { align-items: center !important; background: #fff; border: 1px solid #b9cad8; border-radius: 10px; height: 48px; line-height: 1.2; min-height: 48px; padding: 10px 13px; white-space: nowrap; }
.direct-debit-field[hidden] { display: none !important; }
[data-device-list], [data-software-list] { display: grid; gap: 16px; }
.device-editor { background: #fff; border: 1px solid #c7d8e4; border-left: 4px solid var(--platform-cyan); border-radius: 14px; display: grid; gap: 15px; margin: 0; padding: 20px; }
.agreement-form .device-editor .field-row > label { align-content: end; }
.device-editor__heading { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.device-editor__heading strong { color: var(--platform-blue); font-family: Manrope, sans-serif; font-size: 1rem; }
.device-editor__subheading { border-top: 1px solid var(--platform-line); color: var(--platform-blue); margin-top: 2px; padding-top: 15px; }
.device-editor__subheading strong { font-family: Manrope, sans-serif; font-size: .95rem; }
.device-editor__subheading small { color: var(--platform-muted); display: block; font-size: .78rem; font-weight: 600; line-height: 1.45; margin-top: 4px; }
.device-editor__remove { background: none; border: 0; color: var(--platform-danger); cursor: pointer; font: inherit; font-size: .86rem; font-weight: 800; padding: 5px; }
.vantage-item-picker { background: #eaf6f8; border: 1px solid #cbe6ec; border-radius: 12px; display: grid; gap: 7px; padding: 14px; }
.vantage-item-picker .field-help, .vantage-item-picker .customer-picker-status { margin: 0; }
.device-editor__internal { background: #f5f8fa; border: 1px solid var(--platform-line); border-radius: 12px; display: grid; gap: 14px; padding: 0 14px 14px; }
.device-editor__internal .device-editor__subheading { margin-top: 0; }
.device-editor__margin-note { align-self: center; margin: 0; padding: 10px 4px; }
.signed-sales-device-picker { margin-bottom: 2px; }
.software-editor { background: #fff; border: 1px solid #c7d8e4; border-left: 4px solid var(--platform-blue); border-radius: 14px; display: grid; gap: 15px; margin: 0; padding: 20px; }
.software-editor__heading { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.software-editor__heading strong { color: var(--platform-blue); font-family: Manrope, sans-serif; font-size: 1rem; }
.software-editor__subheading { border-top: 1px solid var(--platform-line); color: var(--platform-blue); margin-top: 2px; padding-top: 15px; }
.software-editor__subheading strong { font-family: Manrope, sans-serif; font-size: .95rem; }
.software-editor__remove { background: none; border: 0; color: var(--platform-danger); cursor: pointer; font: inherit; font-size: .86rem; font-weight: 800; padding: 5px; }
.schedule-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.add-device-button, .add-software-button { justify-self: start; }
.legacy-software-note { background: #fff8e4; border-left: 4px solid #d99a13; border-radius: 0 10px 10px 0; color: var(--platform-muted); padding: 14px 16px; }
.legacy-software-note strong { color: var(--platform-ink); }
.legacy-software-note p { margin: 6px 0; }
.legacy-software-note small { display: block; line-height: 1.5; }
.signature-box { background: #fff; border: 2px dashed #9bb3c6; border-radius: 12px; overflow: hidden; position: relative; }
.signature-field { display: grid; gap: 8px; margin-bottom: 20px; }
.signature-field__label { color: var(--platform-text); font-weight: 800; }
.signature-box canvas, .signature-box svg { cursor: crosshair; display: block; height: 170px; touch-action: none; user-select: none; width: 100%; -webkit-touch-callout: none; -webkit-user-select: none; }
.signature-box canvas:focus, .signature-box svg:focus { box-shadow: inset 0 0 0 3px rgba(0, 159, 188, .16); outline: 0; }
.signature-box svg path { fill: none; stroke: #102844; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.4; vector-effect: non-scaling-stroke; }
.signature-box--invalid { border-color: var(--platform-danger); }
.signature-box button { background: rgba(255,255,255,.9); border: 1px solid var(--platform-line); border-radius: 8px; bottom: 8px; color: var(--platform-blue); cursor: pointer; font-weight: 800; padding: 6px 10px; position: absolute; right: 8px; }
.signature-box__status { background: rgba(255,255,255,.92); border-radius: 7px; bottom: 9px; color: var(--platform-muted); font-size: .78rem; font-weight: 800; left: 10px; padding: 5px 8px; pointer-events: none; position: absolute; }
.signature-box--signed .signature-box__status { color: #14723b; }
.pdf-viewer { background: #dbe5ec; border: 1px solid var(--platform-line); border-radius: 14px; height: min(78vh, 850px); overflow: hidden; }
.pdf-viewer iframe { border: 0; height: 100%; width: 100%; }
.customer-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.customer-progress li { background: #dfe8ef; border-radius: 999px; flex: 1; font-size: .8rem; font-weight: 800; padding: 9px 12px; text-align: center; }
.customer-progress li.is-current { background: var(--platform-cyan); color: #fff; }
.customer-progress li.is-done { background: var(--platform-blue); color: #fff; }
.customer-agreement, .customer-agreement .platform-form, .customer-agreement .platform-card,
.customer-agreement .field-row, .customer-agreement label { min-width: 0; }
.customer-agreement .data-table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
.customer-agreement .data-table { min-width: 640px; }
.customer-agreement .platform-alert, .customer-agreement .platform-card p,
.customer-agreement .detail-list dd { overflow-wrap: anywhere; }
.secure-note { align-items: flex-start; background: #e8f6f8; border-radius: 12px; display: flex; gap: 12px; padding: 15px; }
.secure-note::before { content: "✓"; background: var(--platform-cyan); border-radius: 50%; color: #fff; display: grid; flex: 0 0 25px; height: 25px; place-items: center; }
.serial-completion-list { display: grid; gap: 14px; margin: 22px 0; }
.serial-contract-line { background: #f5f9fc; border: 1px solid var(--platform-line); border-radius: 16px; padding: 18px; }
.serial-contract-line__heading { align-items: flex-start; display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.serial-contract-line__number { color: var(--platform-blue); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.serial-contract-line__model { color: var(--platform-ink); font-family: Manrope, sans-serif; font-size: 1.08rem; line-height: 1.3; }
.serial-contract-line__details { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 17px; overflow: hidden; }
.serial-contract-line__details div { background: #fff; border: 1px solid var(--platform-line); display: grid; gap: 3px; margin: 0; min-width: 0; padding: 10px 12px; }
.serial-contract-line__details dt { color: var(--platform-muted); font-size: .72rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.serial-contract-line__details dd { color: var(--platform-ink); font-size: .88rem; font-weight: 700; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.serial-contract-line > label { margin: 0; }
.serial-completion-list input[readonly] { background: #eef4f8; color: var(--platform-muted); cursor: not-allowed; }
.serial-completion-panel .platform-form + .field-help { margin-top: 18px; }
.serial-completion-confirmed { margin-bottom: 28px; }
.countersign-panel { border-top: 1px solid var(--platform-border); padding-top: 28px; }

.analytics-hero-badge { align-items: flex-start; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 18px; display: grid; flex: 0 0 245px; gap: 4px; padding: 20px 22px; }
.analytics-hero-badge strong { color: #fff; font-family: Manrope, sans-serif; font-size: 1.25rem; }
.analytics-hero-badge span { color: rgba(255,255,255,.78); font-size: .88rem; }
.analytics-toolbar { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 24px; padding-bottom: 22px; padding-top: 22px; }
.analytics-period-form { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(210px, 260px) auto; }
.analytics-connection { align-items: center; display: flex; gap: 12px; }
.analytics-connection div { display: grid; }
.analytics-connection small { color: var(--platform-muted); font-size: .76rem; max-width: 310px; overflow-wrap: anywhere; }
.analytics-range { color: var(--platform-muted); margin: 0 0 22px; }
.analytics-metrics .metric-card { cursor: default; }
.analytics-metrics .metric-card:hover { box-shadow: none; transform: none; }
.analytics-metrics .metric-card .metric-card__text { font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.08; overflow-wrap: anywhere; }
.analytics-section-heading { margin: 42px 0 18px; }
.analytics-section-heading h2 { margin: 4px 0 8px; }
.analytics-section-heading p:last-child { color: var(--platform-muted); margin: 0; }
.analytics-table-note { color: var(--platform-muted); font-size: .86rem; }
.analytics-table td { vertical-align: middle; }
.analytics-search-query { background: #e8f6f8; border-left: 3px solid var(--platform-cyan); border-radius: 0 8px 8px 0; color: var(--platform-blue); display: block; font-size: .78rem; line-height: 1.4; margin-top: 9px; max-width: 280px; padding: 7px 9px; }
.analytics-search-query b { display: block; }
.analytics-search-query small { color: var(--platform-muted); display: block; margin-top: 2px; }
.analytics-rank { color: var(--platform-cyan); font-family: Manrope, sans-serif; font-size: 1.3rem; }
.analytics-share { background: #e2edf3; border-radius: 999px; height: 8px; margin-bottom: 4px; min-width: 100px; overflow: hidden; width: 100%; }
.analytics-share span { background: linear-gradient(90deg, var(--platform-cyan), var(--platform-blue)); border-radius: inherit; display: block; height: 100%; min-width: 3px; }
.analytics-location-grid { margin-top: 24px; }
.analytics-location-grid .platform-card { min-width: 0; }
.analytics-source-grid { margin-top: 24px; }
.analytics-source-grid .platform-card { min-width: 0; }
.analytics-search-terms { margin-top: 24px; }
.search-term-table td:first-child { min-width: 190px; }
.search-term-table td:nth-child(2) { max-width: 420px; overflow-wrap: anywhere; }
.search-console-setup p { margin: 12px 0 0; }
.analytics-location-page-drilldown { margin-top: 24px; }
.analytics-location-page-drilldown, .analytics-device-detail { scroll-margin-top: 190px; }
.analytics-location-page-picker { align-items: end; border-bottom: 1px solid var(--platform-line); display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 24px; padding-bottom: 24px; }
.analytics-drilldown-heading { margin-bottom: 18px; }
.analytics-drilldown-heading p:last-child { color: var(--platform-muted); margin: 5px 0 0; }
.analytics-drilldown-heading a { color: var(--platform-blue); font-weight: 800; }
.analytics-drilldown-columns { gap: 18px; }
.analytics-drilldown-panel { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 14px; min-width: 0; padding: 18px; }
.analytics-drilldown-panel h3 { color: var(--platform-blue); margin: 0 0 8px; }
.analytics-place-list { display: grid; }
.analytics-place { align-items: center; border-top: 1px solid var(--platform-line); display: grid; gap: 12px; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 14px 0; }
.analytics-place:first-child { border-top: 0; }
.analytics-place__rank { align-items: center; background: #e7f6f8; border-radius: 50%; color: var(--platform-blue); display: flex; font-size: .76rem; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.analytics-place div { display: grid; min-width: 0; }
.analytics-place strong { color: var(--platform-ink); overflow-wrap: anywhere; }
.analytics-place small { color: var(--platform-muted); overflow-wrap: anywhere; }
.analytics-place b { color: var(--platform-blue); font-family: Manrope, sans-serif; }
.analytics-device-picker { align-items: end; border-bottom: 1px solid var(--platform-line); display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 24px; padding-bottom: 24px; }
.analytics-device-heading { margin-bottom: 4px; }
.analytics-privacy-note { background: #e8f6f8; border-left: 4px solid var(--platform-cyan); border-radius: 0 12px 12px 0; margin-top: 24px; padding: 17px 20px; }
.analytics-privacy-note strong { color: var(--platform-blue); }
.analytics-privacy-note p { color: var(--platform-muted); line-height: 1.6; margin: 5px 0 0; }
.analytics-setup { display: grid; gap: 18px; }
.analytics-setup h2 { margin-bottom: 10px; }
.analytics-setup p { color: var(--platform-muted); line-height: 1.65; }
.analytics-setup__steps { counter-reset: analytics-steps; display: grid; gap: 14px; list-style: none; margin: 4px 0; padding: 0; }
.analytics-setup__steps li { align-items: start; counter-increment: analytics-steps; display: grid; gap: 13px; grid-template-columns: 34px 1fr; line-height: 1.55; }
.analytics-setup__steps li::before { align-items: center; background: var(--platform-blue); border-radius: 50%; color: #fff; content: counter(analytics-steps); display: flex; font-weight: 800; height: 32px; justify-content: center; width: 32px; }
.analytics-setup__steps li > div { min-width: 0; padding-top: 4px; }
.analytics-setup code { background: var(--platform-pale); border-radius: 5px; color: var(--platform-blue); font-size: .82em; padding: 2px 5px; }
.analytics-command { background: #f3f8fb; border: 1px solid var(--platform-line); border-radius: 12px; display: grid; gap: 10px; padding: 16px; }
.analytics-command strong { color: var(--platform-blue); }
.analytics-command code { display: block; overflow-x: auto; padding: 10px 12px; white-space: nowrap; }
.analytics-command span { color: var(--platform-muted); font-size: .88rem; line-height: 1.55; }
.realtime-dot { background: #29b86f; border: 3px solid #dff7ea; border-radius: 50%; display: inline-block; height: 11px; margin-right: 5px; vertical-align: -1px; width: 11px; }
.realtime-analytics { margin-bottom: 24px; }
.realtime-analytics__summary { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.realtime-analytics__summary > div { background: linear-gradient(145deg, #f7fbfd, #eaf6f8); border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 7px; min-height: 130px; padding: 18px; }
.realtime-analytics__summary span { color: var(--platform-blue); font-size: .82rem; font-weight: 800; }
.realtime-analytics__summary strong { color: var(--platform-cyan); font-family: Manrope, sans-serif; font-size: 2.1rem; line-height: 1.08; margin-top: auto; overflow-wrap: anywhere; }
.realtime-analytics__summary strong.realtime-analytics__name { color: var(--platform-ink); font-size: clamp(1.05rem, 1.8vw, 1.38rem); }
.realtime-analytics__summary small { color: var(--platform-muted); }
.realtime-analytics__rankings { border-top: 1px solid var(--platform-line); margin-top: 24px; padding-top: 24px; }
.realtime-analytics__ranking { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; padding: 18px 20px; }
.realtime-analytics__ranking h3 { color: var(--platform-blue); margin: 0 0 8px; }
.realtime-analytics__note { color: var(--platform-muted); font-size: .84rem; line-height: 1.55; margin: 20px 0 0; }
.overview-realtime { background: linear-gradient(135deg, #00458c, #006da4); border-radius: 16px; color: #fff; margin: -2px 0 26px; padding: 20px; }
.overview-realtime__heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
.overview-realtime__heading > div { align-items: center; display: flex; }
.overview-realtime__heading small { color: rgba(255,255,255,.72); }
.overview-realtime__stats { display: grid; gap: 1px; grid-template-columns: .65fr 1.7fr 1fr; overflow: hidden; }
.overview-realtime__stats > div { background: rgba(255,255,255,.1); display: grid; gap: 4px; min-height: 92px; padding: 15px; }
.overview-realtime__stats > div:first-child { border-radius: 12px 0 0 12px; }
.overview-realtime__stats > div:last-child { border-radius: 0 12px 12px 0; }
.overview-realtime__stats span { color: #9befff; font-size: .78rem; font-weight: 800; }
.overview-realtime__stats strong { color: #fff; font-family: Manrope, sans-serif; font-size: 1.05rem; line-height: 1.28; margin-top: auto; overflow-wrap: anywhere; }
.overview-realtime__stats > div:first-child strong { font-size: 2.2rem; line-height: 1; }
.overview-realtime__stats small { color: rgba(255,255,255,.72); }
.overview-realtime .platform-alert { margin-bottom: 0; }
.overview-realtime__warning { color: #ffe7a8; font-size: .82rem; line-height: 1.5; margin: 14px 0 0; }
.overview-analytics__range { color: var(--platform-muted); margin: -7px 0 22px; }
.overview-analytics__warning { margin-bottom: 22px; }
.overview-analytics__summary { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-analytics__summary > div { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 7px; min-height: 130px; padding: 18px; }
.overview-analytics__summary span { color: var(--platform-blue); font-size: .82rem; font-weight: 800; }
.overview-analytics__summary strong { color: var(--platform-cyan); font-family: Manrope, sans-serif; font-size: 2.1rem; line-height: 1.08; margin-top: auto; overflow-wrap: anywhere; }
.overview-analytics__summary strong.overview-analytics__name { color: var(--platform-ink); font-size: clamp(1.15rem, 2vw, 1.55rem); }
.overview-analytics__summary small { color: var(--platform-muted); }
.overview-analytics__rankings { border-top: 1px solid var(--platform-line); margin-top: 24px; padding-top: 24px; }
.overview-analytics__ranking { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; padding: 18px 20px; }
.overview-analytics__ranking h3 { color: var(--platform-blue); margin: 0 0 8px; }
.overview-analytics__note { color: var(--platform-muted); font-size: .84rem; line-height: 1.55; margin: 20px 0 0; }

.overview-customer-360__links { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: flex-end; }
.overview-customer-360__summary { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.overview-customer-360__summary > div { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 6px; min-width: 0; padding: 18px; }
.overview-customer-360__summary span { color: var(--platform-blue); font-size: .84rem; font-weight: 800; }
.overview-customer-360__summary strong { color: var(--platform-cyan); font-family: Manrope, sans-serif; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
.overview-customer-360__summary small { color: var(--platform-muted); line-height: 1.45; }
.overview-customer-360__details { border-top: 1px solid var(--platform-line); margin-top: 24px; padding-top: 24px; }
.overview-customer-360__panel { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; padding: 18px 20px; }
.overview-customer-360__panel h3 { color: var(--platform-blue); margin: 0 0 10px; }
.overview-customer-list, .overview-follow-up-list { display: grid; }
.overview-customer-list a, .overview-follow-up-list a { align-items: center; border-top: 1px solid var(--platform-line); color: var(--platform-ink); display: flex; gap: 18px; justify-content: space-between; min-width: 0; padding: 13px 0; text-decoration: none; }
.overview-customer-list a:first-child, .overview-follow-up-list a:first-child { border-top: 0; }
.overview-customer-list a:hover strong, .overview-follow-up-list a:hover strong { color: var(--platform-cyan); }
.overview-customer-list a > span, .overview-follow-up-list a > span { display: grid; gap: 3px; min-width: 0; }
.overview-customer-list strong, .overview-follow-up-list strong { color: var(--platform-blue); overflow-wrap: anywhere; }
.overview-customer-list small, .overview-follow-up-list small { color: var(--platform-muted); line-height: 1.45; overflow-wrap: anywhere; }
.overview-customer-list b, .overview-follow-up-list b { color: var(--platform-muted); flex: 0 0 auto; font-size: .78rem; }
.overview-follow-up-list b.is-overdue { color: var(--platform-danger); }

.customer-360-search { align-items: end; display: grid; gap: 28px; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); }
.customer-360-tabs { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.customer-360-tabs a { border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: #fff; font-weight: 800; padding: 13px 19px; text-decoration: none; }
.customer-360-tabs a:hover, .customer-360-tabs a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--platform-blue); }
.customer-360-search h2 { margin-bottom: 8px; }
.customer-360-search p:not(.eyebrow) { color: var(--platform-muted); line-height: 1.6; margin: 0; }
.customer-360-search__form { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; }
.customer-360-search__form label { color: var(--platform-ink); display: grid; font-size: .88rem; font-weight: 800; gap: 8px; }
.customer-360-search__form input { background: #fff; border: 1px solid #b9cad8; border-radius: 10px; box-sizing: border-box; color: var(--platform-ink); font: inherit; min-height: 50px; padding: 11px 13px; width: 100%; }
.customer-360-search__form input:focus { border-color: var(--platform-cyan); box-shadow: 0 0 0 3px rgba(0,159,188,.14); outline: 0; }
.customer-360-heading { align-items: center; display: flex; gap: 24px; justify-content: space-between; }
.customer-360-heading h2 { margin-bottom: 8px; }
.customer-360-heading p:not(.eyebrow) { color: var(--platform-muted); margin: 0; }
.customer-360-flags { align-items: flex-end; display: flex; flex-direction: column; gap: 9px; }
.customer-flag { background: #e9f2f7; border-radius: 999px; color: var(--platform-blue); display: inline-flex; font-size: .77rem; font-weight: 800; padding: 6px 10px; white-space: nowrap; }
.customer-flag--active { background: #e1f6ea; color: #12633d; }
.customer-flag--stop { background: #f7e4e6; color: #8b2530; }
.customer-flag--vip { background: #fff2c8; color: #76520a; }
.customer-result-stop { color: var(--platform-danger) !important; font-weight: 800; }
.customer-360-grid { display: grid; gap: 24px; margin-top: 24px; }
.customer-360-grid--summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-360-restricted { background: linear-gradient(145deg, #f8fbfd, #edf4f8); border-style: dashed; box-shadow: none; }
.customer-360-restricted p { color: var(--platform-muted); line-height: 1.6; margin-bottom: 0; }
.customer-360-sales { border-top: 4px solid var(--platform-blue); }
.customer-360-service { border-top: 4px solid var(--platform-cyan); }
.customer-contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-contact-grid article { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 14px; display: grid; gap: 5px; min-width: 0; padding: 17px; }
.customer-contact-grid h3 { color: var(--platform-blue); margin: 0; overflow-wrap: anywhere; }
.customer-contact-grid p, .customer-contact-grid span { color: var(--platform-muted); margin: 0; overflow-wrap: anywhere; }
.customer-contact-grid a { color: var(--platform-blue); font-weight: 750; overflow-wrap: anywhere; }
.customer-contact-grid b { color: var(--platform-success); font-size: .78rem; margin-top: 4px; }
.customer-contact-grid .customer-contact-location { color: var(--platform-cyan); font-size: .75rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.customer-site-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-site-grid a, .customer-site-grid article { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 14px; color: var(--platform-blue); display: grid; gap: 7px; min-width: 0; padding: 17px; text-decoration: none; }
.customer-site-grid a:hover { border-color: var(--platform-cyan); }
.customer-site-grid article > div { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.customer-site-grid span { color: var(--platform-muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.customer-site-grid small { color: var(--platform-cyan); font-size: .75rem; font-weight: 800; overflow-wrap: anywhere; }
.customer-location-family .platform-help { max-width: 780px; }
.customer-map-stats { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.customer-map-stats > div { background: #fff; border: 1px solid var(--platform-line); border-radius: 17px; display: grid; gap: 8px; padding: 20px; }
.customer-map-stats span { color: var(--platform-muted); font-size: .82rem; font-weight: 800; }
.customer-map-stats strong { color: var(--platform-blue); font-family: Manrope, sans-serif; font-size: clamp(1.25rem, 2vw, 2rem); overflow-wrap: anywhere; }
.customer-map-card { isolation: isolate; overflow: hidden; padding: 14px; position: relative; z-index: 0; }
.customer-map { border-radius: 15px; height: min(76vh, 780px); min-height: 560px; overflow: hidden; position: relative; width: 100%; z-index: 0; }
.customer-map .leaflet-control-container, .customer-map .leaflet-pane { position: absolute; }
.customer-map-note { color: var(--platform-muted); font-size: .82rem; line-height: 1.55; margin: 13px 7px 2px; }
.customer-map-popup { display: grid; gap: 4px; min-width: 185px; }
.customer-map-popup strong { color: var(--platform-blue); font-size: 1rem; overflow-wrap: anywhere; }
.customer-map-popup span, .customer-map-popup small { color: var(--platform-muted); }
.customer-map-popup b { color: var(--platform-danger); font-size: .78rem; }
.customer-map-popup a { color: var(--platform-blue); font-weight: 800; margin-top: 5px; }
.customer-follow-up-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
.customer-follow-up-layout--single { grid-template-columns: 1fr; }
.customer-follow-up-list { display: grid; gap: 13px; }
.customer-follow-up { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; padding: 17px 18px; }
.customer-follow-up--completed { opacity: .82; }
.customer-follow-up__heading { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.customer-follow-up__heading > div { display: flex; flex-wrap: wrap; gap: 7px; }
.customer-follow-up__heading > strong { color: var(--platform-muted); font-size: .8rem; }
.customer-follow-up__heading > strong.customer-follow-up__overdue { color: var(--platform-danger); }
.customer-follow-up > p { color: var(--platform-ink); line-height: 1.6; margin: 14px 0 10px; overflow-wrap: anywhere; }
.customer-follow-up > small { color: var(--platform-muted); display: block; line-height: 1.5; }
.customer-follow-up__actions { align-items: center; border-top: 1px solid var(--platform-line); display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; padding-top: 8px; }
.customer-follow-up__actions form { margin: 0; }
.customer-visibility { background: #e7f1f7; border-radius: 999px; color: var(--platform-blue); font-size: .74rem; font-weight: 800; padding: 6px 9px; }
.customer-visibility--sales { background: #e5efff; }
.customer-visibility--service { background: #e3f7f7; color: #00687b; }
.customer-follow-up-form { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 15px; padding: 19px; }
.customer-follow-up-form h3 { color: var(--platform-blue); margin: 0; }
.enquiry-metrics .metric-card { min-height: 160px; }
.enquiry-filter { grid-template-columns: minmax(260px, 1fr) minmax(160px, 210px) minmax(190px, 240px) auto; }
.enquiry-detail a { color: var(--platform-blue); font-weight: 750; }
.enquiry-message { background: var(--platform-pale); border-left: 4px solid var(--platform-cyan); border-radius: 0 14px 14px 0; margin-top: 24px; padding: 18px 20px; }
.enquiry-message h3 { color: var(--platform-blue); margin: 0 0 10px; }
.enquiry-message p { line-height: 1.68; margin: 0; overflow-wrap: anywhere; }
.enquiry-actions { display: grid; gap: 14px; }
.enquiry-actions h2 { margin-bottom: 4px; }
.enquiry-actions form { margin: 0; }
.enquiry-actions form > .button { width: 100%; }
.feedback-admin-tabs { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.feedback-admin-tabs a { background: #fff; border: 1px solid var(--platform-line); border-radius: 999px; color: var(--platform-blue); font-weight: 800; padding: 11px 17px; text-decoration: none; }
.feedback-admin-tabs a[aria-current="page"] { background: var(--platform-blue); border-color: var(--platform-blue); color: #fff; }
.feedback-admin-tabs span { background: rgba(0,159,188,.14); border-radius: 999px; font-size: .72rem; margin-left: 6px; padding: 4px 7px; }
.feedback-admin-tabs a[aria-current="page"] span { background: rgba(255,255,255,.2); }
.feedback-metrics .metric-card { min-height: 160px; }
.feedback-filter { grid-template-columns: minmax(280px, 1fr) minmax(180px, 240px) auto; }
.feedback-detail a { color: var(--platform-blue); font-weight: 750; }
.feedback-answer-list { display: grid; gap: 12px; margin-top: 28px; }
.feedback-answer-list section { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 14px; padding: 17px 19px; }
.feedback-answer-list p { color: var(--platform-muted); line-height: 1.55; margin: 0 0 9px; }
.feedback-answer-list strong { color: var(--platform-blue); display: block; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.feedback-question-editor fieldset { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 15px; margin: 0; padding: 18px; }
.feedback-question-editor legend { color: var(--platform-blue); font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.4; padding: 0 7px; }
.feedback-question-editor textarea { min-height: 82px; }
.feedback-question-editor__checks { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.feedback-question-editor__checks label, .feedback-add-question .check-field { align-items: center; display: flex; gap: 8px; }
.feedback-question-editor__checks input, .feedback-add-question .check-field input { height: 18px; margin: 0; width: 18px; }
.feedback-add-question { position: sticky; top: 24px; }
.custom-permissions-list { display: grid; gap: 13px; }
.custom-permission-user { border: 1px solid var(--platform-line); border-radius: 15px; overflow: hidden; }
.custom-permission-user > summary { align-items: center; background: #f8fbfd; cursor: pointer; display: flex; gap: 18px; justify-content: space-between; list-style: none; padding: 17px 19px; }
.custom-permission-user > summary::-webkit-details-marker { display: none; }
.custom-permission-user > summary span:first-child { display: grid; gap: 3px; }
.custom-permission-user > summary strong { color: var(--platform-blue); }
.custom-permission-user > summary small { color: var(--platform-muted); }
.custom-permission-form { border-top: 1px solid var(--platform-line); display: grid; gap: 20px; padding: 20px; }
.permission-mode { border: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; }
.permission-mode legend { color: var(--platform-ink); font-weight: 800; margin-bottom: 10px; width: 100%; }
.permission-mode label, .permission-check-grid label { align-items: flex-start; color: var(--platform-ink); display: flex; font-weight: 700; gap: 9px; line-height: 1.4; }
.permission-mode input, .permission-check-grid input { flex: 0 0 auto; height: 18px; margin-top: 1px; width: 18px; }
.permission-check-grid { display: grid; gap: 11px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-permission-form .button { justify-self: start; }

.service-live-state { align-items: center; color: #fff; display: grid; gap: 2px; grid-template-columns: auto 1fr; min-width: 230px; }
.service-live-state > span { background: #84de47; border: 4px solid rgba(255,255,255,.18); border-radius: 50%; grid-row: 1 / 3; height: 15px; margin-right: 10px; width: 15px; }
.service-live-state strong { font-size: 1rem; }
.service-live-state small { color: rgba(255,255,255,.75); }
.service-metrics { margin-bottom: 28px; }
.service-map-card { isolation: isolate; overflow: hidden; position: relative; z-index: 0; }
.service-map-legend { align-items: center; display: flex; flex-wrap: wrap; gap: 9px 18px; margin: -6px 0 15px; }
.service-map-legend span { align-items: center; color: var(--platform-muted); display: inline-flex; font-size: .8rem; font-weight: 750; gap: 8px; }
.service-map-legend i { display: inline-block; flex: 0 0 auto; }
.service-map-legend__tracker { background: var(--platform-cyan); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--platform-blue); height: 17px; width: 17px; }
.service-map-legend__customer { background: #fff; border: 2px solid var(--platform-blue); border-radius: 50%; height: 12px; width: 12px; }
.service-map-legend__workshop { background: #84de47; border: 2px solid var(--platform-blue); border-radius: 50%; height: 14px; width: 14px; }
.service-map-legend__moving { background: #84de47; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #4f9025; height: 10px; width: 10px; }
.service-map { border-radius: 16px; height: min(68vh, 680px); min-height: 500px; overflow: hidden; position: relative; width: 100%; z-index: 0; }
.service-map .leaflet-control-container, .service-map .leaflet-pane { position: absolute; }
.service-tracker-marker { background: transparent; border: 0; }
.service-tracker-marker__pin { align-items: center; background: var(--platform-cyan); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px var(--platform-blue), 0 8px 18px rgba(0,41,84,.36); display: flex; height: 36px; justify-content: center; position: relative; width: 36px; }
.service-tracker-marker__pin svg { fill: #fff; height: 23px; width: 23px; }
.service-tracker-marker__pin i { background: #84de47; border: 2px solid #fff; border-radius: 50%; bottom: -2px; height: 10px; position: absolute; right: -2px; width: 10px; }
.service-tracker-marker.is-moving .service-tracker-marker__pin { box-shadow: 0 0 0 4px #84de47, 0 8px 20px rgba(0,41,84,.42); }
.service-tracker-marker.is-moving .service-tracker-marker__pin i { animation: service-tracker-pulse 1.8s ease-in-out infinite; }
.service-tracker-marker.is-stale .service-tracker-marker__pin { background: #7d8c9b; box-shadow: 0 0 0 3px #4f5d69, 0 7px 15px rgba(0,41,84,.24); }
.service-tracker-marker.is-stale .service-tracker-marker__pin i { background: #95a3af; }
@keyframes service-tracker-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(132,222,71,.5); } 50% { box-shadow: 0 0 0 6px rgba(132,222,71,0); } }
@media (prefers-reduced-motion: reduce) { .service-tracker-marker.is-moving .service-tracker-marker__pin i { animation: none; } }
.service-map-popup { display: grid; gap: 4px; min-width: 210px; }
.service-map-popup strong { color: var(--platform-blue); font-size: 1rem; }
.service-map-popup span, .service-map-popup small { color: var(--platform-muted); }
.service-map-popup b { color: var(--platform-danger); font-size: .76rem; margin-top: 5px; }
.service-dispatch-plan__heading { align-items: end; }
.service-dispatch-live-status { color: #12633d; font-size: .8rem; font-weight: 800; margin: 0; min-height: 0; text-align: right; }
.service-dispatch-live-status:empty { display: none; }
.service-dispatch-live-status.is-error { color: var(--platform-danger); }
.service-dispatch-plan.is-updating .service-dispatch-workspace, .service-dispatch-plan.is-updating .service-dispatch-add-form, .service-dispatch-plan.is-updating .service-dispatch-day { opacity: .55; pointer-events: none; }
.service-dispatch-plan.is-updating { cursor: progress; }
.service-dispatch-plan.is-updating * { cursor: progress !important; }
.service-dispatch-date-form { display: grid; gap: 7px; min-width: 310px; }
.service-dispatch-date-form label, .service-dispatch-add-form label { color: var(--platform-blue); font-size: .82rem; font-weight: 800; }
.service-dispatch-date-form > div, .service-dispatch-add-form > div { align-items: stretch; display: flex; gap: 9px; }
.service-dispatch-date-form input, .service-dispatch-add-form select, .service-dispatch-actions select { background: #fff; border: 1px solid var(--platform-line); border-radius: 10px; color: var(--platform-ink); font: inherit; min-height: 42px; padding: 9px 11px; }
.service-dispatch-date-form input { flex: 1; }
.service-dispatch-day { align-items: center; background: linear-gradient(135deg, #eaf6f8, #f5fafc); border: 1px solid #cbe5eb; border-radius: 15px; display: flex; gap: 18px; justify-content: space-between; margin: 20px 0; padding: 15px 17px; }
.service-dispatch-day > div { display: grid; gap: 3px; }
.service-dispatch-day strong { color: var(--platform-blue); }
.service-dispatch-day span { color: var(--platform-muted); font-size: .8rem; }
.service-dispatch-day nav { display: flex; gap: 8px; }
.service-dispatch-add-form { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; display: grid; gap: 8px; margin-bottom: 20px; padding: 16px; }
.service-dispatch-add-form select:first-child { flex: 1.4; }
.service-dispatch-add-form select:nth-child(2) { flex: 1; }
.service-dispatch-workspace { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(260px, .72fr) minmax(0, 2.28fr); }
.service-dispatch-pool { background: #f2f6f9; border: 2px dashed #a9bfce; border-radius: 17px; min-width: 0; padding: 17px; position: sticky; top: 112px; }
.service-dispatch-pool.is-drag-over { background: #e2f5f8; border-color: var(--platform-cyan); }
.service-dispatch-pool > header, .service-dispatch-engineer > header { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.service-dispatch-pool > header div, .service-dispatch-engineer > header div { display: grid; gap: 2px; }
.service-dispatch-pool header span, .service-dispatch-engineer header span { color: var(--platform-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-dispatch-pool h3, .service-dispatch-engineer h3 { color: var(--platform-blue); font-size: 1.1rem; margin: 0; }
.service-dispatch-pool header b, .service-dispatch-engineer header b { background: #fff; border: 1px solid var(--platform-line); border-radius: 999px; color: var(--platform-blue); font-size: .73rem; padding: 6px 9px; text-align: right; }
.service-dispatch-pool > p { color: var(--platform-muted); font-size: .8rem; line-height: 1.45; margin: 12px 0 14px; }
.service-dispatch-pool__list { display: grid; gap: 9px; max-height: 680px; overflow-y: auto; padding-right: 3px; }
.service-dispatch-pool-call { align-items: center; background: #fff; border: 1px solid var(--platform-line); border-radius: 13px; cursor: grab; display: grid; gap: 9px; grid-template-columns: auto 1fr; padding: 12px; }
.service-dispatch-pool-call:hover { border-color: var(--platform-cyan); box-shadow: 0 8px 18px rgba(0,69,140,.08); }
.service-dispatch-pool-call.is-dragging, .service-dispatch-timeline > li.is-dragging { opacity: .45; }
.service-dispatch-pool-call > div { display: grid; gap: 3px; min-width: 0; }
.service-dispatch-pool-call strong { color: var(--platform-blue); overflow-wrap: anywhere; }
.service-dispatch-pool-call small { color: var(--platform-muted); font-size: .75rem; overflow-wrap: anywhere; }
.service-dispatch-drag { color: var(--platform-muted); cursor: grab; font-size: 1rem; letter-spacing: -3px; user-select: none; }
.service-dispatch-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.service-dispatch-engineer { background: #fff; border: 1px solid var(--platform-line); border-radius: 17px; min-width: 0; padding: 16px; }
.service-dispatch-timeline { display: grid; gap: 9px; list-style: none; margin: 14px 0 0; min-height: 92px; padding: 0; }
.service-dispatch-timeline.is-empty { align-content: center; border: 2px dashed #cad8e2; border-radius: 13px; padding: 10px; }
.service-dispatch-timeline.is-drag-over { background: #eaf7f9; border-color: var(--platform-cyan); }
.service-dispatch-timeline > li:not(.service-dispatch-drop-hint) { align-items: start; background: #f8fbfd; border: 1px solid var(--platform-line); border-left: 5px solid #a5b5c2; border-radius: 13px; cursor: grab; display: grid; gap: 9px; grid-template-columns: auto auto minmax(0, 1fr); padding: 12px; position: relative; }
.service-dispatch-timeline > li.is-next { background: #eaf7f9; border-left-color: var(--platform-cyan); }
.service-dispatch-timeline > li.is-on-site { background: #fffaf0; border-left-color: #d49a00; }
.service-dispatch-timeline > li.is-visited { background: #f0faf4; border-left-color: #2b9760; }
.service-dispatch-timeline > li.is-closed { opacity: .7; }
.service-dispatch-timeline > li.is-drop-before::before { background: var(--platform-cyan); border-radius: 999px; content: ''; height: 4px; left: 0; position: absolute; right: 0; top: -7px; }
.service-dispatch-timeline > li.is-drop-after::after { background: var(--platform-cyan); border-radius: 999px; bottom: -7px; content: ''; height: 4px; left: 0; position: absolute; right: 0; }
.service-dispatch-position { align-items: center; background: var(--platform-blue); border-radius: 50%; color: #fff; display: inline-flex; font-size: .72rem; font-weight: 850; height: 25px; justify-content: center; width: 25px; }
.service-dispatch-call { display: grid; gap: 4px; min-width: 0; }
.service-dispatch-call > div { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.service-dispatch-call strong { color: var(--platform-blue); overflow-wrap: anywhere; }
.service-dispatch-call p, .service-dispatch-call small { color: var(--platform-muted); font-size: .77rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.service-dispatch-call .service-dispatch-visit { color: #12633d; font-weight: 800; }
.service-dispatch-call .service-dispatch-warning { color: var(--platform-danger); font-weight: 750; }
.service-dispatch-call .service-dispatch-notice { color: #77550d; font-weight: 750; }
.service-dispatch-actions { grid-column: 1 / -1; }
.service-dispatch-actions > summary { color: var(--platform-blue); cursor: pointer; font-size: .75rem; font-weight: 800; margin-left: 58px; }
.service-dispatch-actions form { align-items: stretch; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.service-dispatch-actions select { font-size: .76rem; min-height: 34px; padding-block: 6px; }
.service-dispatch-drop-hint { color: var(--platform-muted); font-size: .8rem; font-weight: 750; padding: 18px; text-align: center; }
body.is-dispatch-dragging .service-dispatch-pool, body.is-dispatch-dragging .service-dispatch-timeline { transition: background .15s ease, border-color .15s ease; }
.service-engineer-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-engineer-card { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 16px; display: grid; gap: 13px; min-width: 0; padding: 18px; }
.service-engineer-card.is-stale { opacity: .72; }
.service-engineer-card > div:first-child { display: grid; gap: 3px; grid-template-columns: auto 1fr; }
.service-engineer-card .service-presence { background: #84de47; border-radius: 50%; grid-row: 1 / 3; height: 11px; margin: 5px 8px 0 0; width: 11px; }
.service-engineer-card.is-stale .service-presence { background: #95a3af; }
.service-engineer-card strong { color: var(--platform-blue); overflow-wrap: anywhere; }
.service-engineer-card small, .service-engineer-card p { color: var(--platform-muted); line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.service-engineer-card .service-tracker-warning { background: #fff4f4; border-left: 3px solid var(--platform-danger); border-radius: 8px; color: var(--platform-danger); font-size: .78rem; padding: 9px 10px; }
.service-engineer-card .service-workshop-distance { border-top: 1px solid var(--platform-line); padding-top: 11px; }
.service-engineer-card details { border-top: 1px solid var(--platform-line); padding-top: 11px; }
.service-engineer-card summary { color: var(--platform-blue); cursor: pointer; font-weight: 800; }
.service-engineer-card ol { display: grid; gap: 7px; list-style-position: inside; margin: 11px 0 0; padding: 0; }
.service-engineer-card li { color: var(--platform-muted); display: flex; font-size: .82rem; gap: 10px; justify-content: space-between; }
.service-engineer-card li b { color: var(--platform-blue); white-space: nowrap; }
.service-calls-table td strong, .service-calls-table td small { display: block; }
.service-calls-table td small { color: var(--platform-muted); margin-top: 3px; }
.service-calls-table tr.is-at-risk td:first-child { border-left: 4px solid var(--platform-danger); }
.service-sortable-table thead th, .sortable-table thead th { padding: 0; }
.service-sortable-table thead th > button, .sortable-table thead th > button { align-items: center; appearance: none; background: transparent; border: 0; color: inherit; cursor: pointer; display: flex; font: inherit; font-weight: inherit; gap: 7px; min-height: 48px; padding: 12px 14px; text-align: left; text-transform: inherit; width: 100%; }
.service-sortable-table thead th > button:hover, .service-sortable-table thead th > button:focus-visible, .sortable-table thead th > button:hover, .sortable-table thead th > button:focus-visible { background: #e6f3f7; color: var(--platform-blue); outline: 0; }
.service-sortable-table thead th > button span, .sortable-table thead th > button span { color: var(--platform-cyan); font-size: 1rem; }
.service-sortable-table thead th[aria-sort="ascending"] > button, .service-sortable-table thead th[aria-sort="descending"] > button, .sortable-table thead th[aria-sort="ascending"] > button, .sortable-table thead th[aria-sort="descending"] > button { background: #dff3f7; color: var(--platform-blue); }
.service-evidence-list { display: grid; gap: 12px; }
.service-evidence-list > article { align-items: center; background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 15px; display: flex; gap: 18px; justify-content: space-between; padding: 17px 18px; }
.service-evidence-list article > div:first-child { display: grid; gap: 6px; }
.service-evidence-list article strong { color: var(--platform-blue); }
.service-evidence-list article p { color: var(--platform-muted); line-height: 1.5; margin: 0; }
.service-evidence-list article p b { color: var(--platform-blue); }
.service-evidence-list article .service-evidence-detail { font-size: .86rem; }
.service-evidence-list article .service-evidence-error { color: var(--platform-danger); font-weight: 700; }
.service-evidence-actions form { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; margin: 0; }
.service-history-recovery { gap: 22px; }
.service-recovery-alert { margin-bottom: 22px; }
.service-recovery-steps { counter-reset: none; display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.service-recovery-steps > li { align-items: start; background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 17px; display: grid; gap: 16px; grid-template-columns: 42px minmax(0, 1fr); padding: 20px; }
.service-recovery-steps > li > div { display: grid; gap: 10px; min-width: 0; }
.service-recovery-steps > li > div > label:first-child { color: var(--platform-blue); font-size: 1rem; font-weight: 850; }
.service-recovery-step { align-items: center; background: #dff6f9; border-radius: 50%; color: var(--platform-blue); display: flex; font-size: .9rem; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.service-recovery-picker { position: relative; }
.service-recovery-picker > input[type="search"] { padding-right: 42px; }
.service-recovery-picker::after { border: solid var(--platform-blue); border-width: 0 2px 2px 0; content: ''; height: 8px; pointer-events: none; position: absolute; right: 17px; top: 17px; transform: rotate(45deg); width: 8px; }
.service-recovery-results { background: #fff; border: 1px solid #9ebdce; border-radius: 0 0 12px 12px; box-shadow: 0 18px 34px rgba(0, 69, 140, .15); left: 0; max-height: 330px; overflow-y: auto; position: absolute; right: 0; top: calc(100% - 2px); z-index: 35; }
.service-recovery-results[hidden] { display: none; }
.service-recovery-results__empty { color: var(--platform-muted); line-height: 1.45; margin: 0; padding: 15px; }
.service-recovery-option { background: #fff; border: 0; border-top: 1px solid var(--platform-line); color: var(--platform-ink); cursor: pointer; display: grid; font: inherit; gap: 4px; padding: 13px 15px; text-align: left; width: 100%; }
.service-recovery-option:first-child { border-top: 0; }
.service-recovery-option:hover, .service-recovery-option:focus, .service-recovery-option.is-active { background: #eaf6f8; box-shadow: inset 4px 0 0 var(--platform-cyan); outline: 0; }
.service-recovery-option strong { color: var(--platform-blue); }
.service-recovery-option small { color: var(--platform-muted); font-size: .81rem; line-height: 1.4; }
.service-recovery-window { max-width: 360px; }
.service-recovery-summary { background: var(--platform-pale); border-left: 4px solid var(--platform-blue); border-radius: 0 13px 13px 0; display: grid; gap: 5px; padding: 15px 17px; }
.service-recovery-summary strong { color: var(--platform-blue); }
.service-recovery-summary span { color: var(--platform-muted); font-size: .88rem; line-height: 1.5; }
.service-recovery-summary.is-ready { background: #e8f7ef; border-color: var(--platform-success); }
.service-recovery-summary.is-ready strong { color: var(--platform-success); }
.service-recovery-summary.is-warning { background: #fff8e4; border-color: #d99a13; }
.service-recovery-summary.is-warning strong { color: #76520a; }
.service-recovery-actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.service-recovery-actions .platform-help { margin: 0; max-width: 650px; }
.service-recovery-actions .button { flex: 0 0 auto; }
.service-assignment-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
.service-assignment-form { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 16px; padding: 20px; }
.service-current-assignments { display: grid; gap: 11px; }
.service-current-assignments h3 { color: var(--platform-blue); margin: 0 0 4px; }
.service-current-assignments > article { align-items: center; border: 1px solid var(--platform-line); border-radius: 14px; display: flex; gap: 15px; justify-content: space-between; padding: 15px 16px; }
.service-current-assignments article > div:first-child { display: grid; gap: 3px; min-width: 0; }
.service-current-assignments strong { color: var(--platform-blue); }
.service-current-assignments span, .service-current-assignments small { color: var(--platform-muted); overflow-wrap: anywhere; }
.service-current-assignments article > div:last-child { align-items: center; display: flex; gap: 10px; }
.service-current-assignments form { margin: 0; }
.service-assignment-history { border-top: 1px solid var(--platform-line); margin-top: 24px; padding-top: 18px; }
.service-assignment-history > summary { color: var(--platform-blue); cursor: pointer; font-weight: 800; margin-bottom: 15px; }
.service-visibility-list { display: grid; gap: 14px; }
.service-visibility-item { background: #f8fbfd; border: 1px solid var(--platform-line); border-radius: 16px; display: grid; gap: 14px; padding: 18px 19px; }
.service-visibility-item.is-paused { background: #fffaf0; border-color: #e7c56f; }
.service-visibility-item__summary { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.service-visibility-item__summary > div { display: grid; gap: 4px; min-width: 0; }
.service-visibility-item__summary strong { color: var(--platform-blue); }
.service-visibility-item__summary span:not(.service-visibility-state) { color: var(--platform-muted); overflow-wrap: anywhere; }
.service-visibility-state { border-radius: 999px; flex: 0 0 auto; font-size: .76rem; font-weight: 850; padding: 7px 11px; }
.service-visibility-state--visible { background: #e1f6ea; color: #12633d; }
.service-visibility-state--hidden { background: #fff0c6; color: #76520a; }
.service-visibility-item__pause { display: grid; gap: 5px; }
.service-visibility-item__pause p { color: var(--platform-muted); line-height: 1.5; margin: 0; }
.service-visibility-item details { border-top: 1px solid var(--platform-line); padding-top: 13px; }
.service-visibility-item summary { color: var(--platform-blue); cursor: pointer; font-weight: 800; }
.service-visibility-form { background: #fff; border: 1px solid var(--platform-line); border-radius: 14px; margin-top: 13px; padding: 17px; }
.service-visibility-form label small { color: var(--platform-muted); font-size: .78rem; font-weight: 500; }
.service-visibility-item > form { margin: 0; }
.service-pause-history { margin-top: 22px; }
.service-connection-list { display: grid; list-style: none; margin: 20px 0 0; padding: 0; }
.service-connection-list li { align-items: center; border-top: 1px solid var(--platform-line); display: flex; gap: 20px; justify-content: space-between; padding: 12px 0; }
.service-connection-list li:first-child { border-top: 0; }
.service-connection-list span { color: var(--platform-muted); }
.service-connection-list b { color: var(--platform-blue); text-align: right; }
.service-webhook-url { background: var(--platform-pale); border: 1px solid var(--platform-line); border-radius: 10px; display: block; overflow-wrap: anywhere; padding: 13px; }
.text-button { appearance: none; background: none; border: 0; color: var(--platform-blue); cursor: pointer; font: inherit; font-weight: 800; padding: 0; }
.text-button--danger { color: var(--platform-danger); }

@media (max-width: 860px) {
    .platform-grid--sidebar, .platform-grid--equal, .metric-grid { grid-template-columns: 1fr; }
    .platform-hero__split { align-items: flex-start; flex-direction: column; }
    .platform-hero__actions { justify-content: flex-start; }
    .customer-follow-up-layout { grid-template-columns: 1fr; }
    .enquiry-filter { grid-template-columns: 1fr; }
    .platform-hero__actions--overview { max-width: 260px; width: 100%; }
    .field-row, .field-row--three, .field-row--company-lookup { grid-template-columns: 1fr; }
    .agreement-form .field-row--three > label { grid-template-rows: auto 48px; }
    .company-search-control { grid-template-columns: 1fr; }
    .company-search-control .button { width: 100%; }
    .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .audit-event { grid-template-columns: 40px 1fr; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-submit { width: 100%; }
    .agreement-summary { position: static; }
    .audit-event code { grid-column: 1 / -1; }
    .analytics-toolbar { align-items: stretch; flex-direction: column; }
    .analytics-connection { justify-content: space-between; }
    .realtime-analytics__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-realtime__stats { grid-template-columns: 1fr; }
    .overview-realtime__stats > div:first-child, .overview-realtime__stats > div:last-child { border-radius: 0; }
    .overview-realtime__stats > div:first-child { border-radius: 12px 12px 0 0; }
    .overview-realtime__stats > div:last-child { border-radius: 0 0 12px 12px; }
    .overview-analytics__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-customer-360__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-360-search { align-items: stretch; grid-template-columns: 1fr; }
    .customer-contact-grid, .customer-site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permission-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-engineer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-dispatch-workspace { grid-template-columns: 1fr; }
    .service-dispatch-pool { position: static; }
    .service-dispatch-pool__list { max-height: 360px; }
    .service-assignment-layout { grid-template-columns: 1fr; }
    .feedback-add-question { position: static; }
    .service-evidence-list > article { align-items: flex-start; flex-direction: column; }
    .service-evidence-actions form { justify-content: flex-start; }
    .service-recovery-actions { align-items: flex-start; flex-direction: column; }
    .customer-dashboard-actions, .customer-metric-grid, .customer-portal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-login-directory-filter { grid-template-columns: 1fr 1fr; }
    .customer-login-row > summary { grid-template-columns: minmax(0, 1fr) 76px auto 18px; }
    .customer-login-row__last { display: none; }
    .customer-knowledge-layout { grid-template-columns: 1fr; }
    .customer-knowledge-filter { grid-template-columns: 1fr; position: static; }
    .customer-document-link-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .platform-hero__actions--overview { grid-template-columns: 1fr; }
    .platform-user span { display: none; }
    .platform-card { border-radius: 15px; }
    .terms-row { align-items: flex-start; flex-direction: column; }
    .copy-field { flex-direction: column; }
    .copy-field button { min-height: 42px; }
    .workflow-steps { grid-template-columns: 1fr; }
    .customer-agreement-hero { padding-block: 34px; }
    .customer-agreement-hero h1 { font-size: clamp(2rem, 10.5vw, 3rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
    .customer-agreement-hero p:not(.eyebrow) { font-size: .96rem; line-height: 1.55; overflow-wrap: anywhere; }
    .customer-agreement-section { padding-block: 28px; }
    .customer-agreement { width: calc(100% - 24px); }
    .customer-agreement .platform-card { padding: 19px 17px; }
    .customer-agreement .platform-card h2 { font-size: 1.55rem; }
    .customer-agreement .platform-card h3 { font-size: 1.08rem; }
    .customer-agreement .button { max-width: 100%; padding-inline: 16px; white-space: normal; width: 100%; }
    .customer-agreement .data-table-wrap { border: 1px solid var(--platform-line); border-radius: 10px; }
    .customer-agreement .data-table th, .customer-agreement .data-table td { padding-inline: 10px; }
    .customer-agreement .pdf-viewer { border-radius: 10px; }
    .customer-agreement .signature-box canvas, .customer-agreement .signature-box svg { height: 150px; }
    .customer-progress { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-progress li { align-items: center; display: flex; font-size: .75rem; justify-content: center; line-height: 1.2; min-height: 44px; padding: 8px 7px; }
    .pdf-viewer { height: 65vh; }
    .agreement-form .form-section--panel { padding: 18px; }
    .device-editor, .software-editor { padding: 16px; }
    .serial-contract-line__details { grid-template-columns: 1fr; }
    .analytics-hero-badge { flex-basis: auto; width: 100%; }
    .analytics-period-form, .analytics-device-picker, .analytics-location-page-picker { grid-template-columns: 1fr; }
    .analytics-period-form .button, .analytics-device-picker .button, .analytics-location-page-picker .button { width: 100%; }
    .analytics-connection { align-items: flex-start; flex-direction: column; }
    .realtime-analytics__summary { grid-template-columns: 1fr; }
    .overview-realtime__heading { align-items: flex-start; flex-direction: column; }
    .overview-analytics__summary { grid-template-columns: 1fr; }
    .overview-customer-360__summary { grid-template-columns: 1fr; }
    .overview-customer-360__links { justify-content: flex-start; }
    .customer-360-search__form, .customer-360-grid--summary, .customer-contact-grid, .customer-site-grid, .customer-map-stats { grid-template-columns: 1fr; }
    .customer-360-search__form .button { width: 100%; }
    .customer-360-heading { align-items: flex-start; flex-direction: column; }
    .customer-360-flags { align-items: flex-start; }
    .customer-map { height: 68vh; min-height: 480px; }
    .customer-360-tabs { justify-content: flex-start; }
    .permission-check-grid { grid-template-columns: 1fr; }
    .service-map { height: 62vh; min-height: 420px; }
    .service-engineer-grid { grid-template-columns: 1fr; }
    .service-dispatch-plan__heading, .service-dispatch-day { align-items: stretch; flex-direction: column; }
    .service-dispatch-date-form { min-width: 0; width: 100%; }
    .service-dispatch-add-form > div { flex-direction: column; }
    .service-dispatch-grid { grid-template-columns: 1fr; }
    .service-current-assignments > article { align-items: flex-start; flex-direction: column; }
    .service-visibility-item__summary { align-items: flex-start; flex-direction: column; }
    .service-recovery-steps > li { grid-template-columns: 1fr; padding: 17px; }
    .service-recovery-actions .button { width: 100%; }
    .customer-dashboard-heading { align-items: flex-start; flex-direction: column; }
    .customer-account-switcher, .customer-dashboard-actions, .customer-metric-grid, .customer-portal-card-grid { grid-template-columns: 1fr; }
    .customer-meter-device { padding: 16px; }
    .customer-meter-device__meters { grid-template-columns: 1fr; }
    .customer-meter-card .field-row, .customer-meter-current { grid-template-columns: 1fr; }
    .customer-knowledge-grid, .customer-knowledge-list { grid-template-columns: 1fr; }
    .customer-knowledge-support { align-items: start; grid-template-columns: 1fr; }
    .customer-knowledge-support .button { grid-column: 1; grid-row: auto; margin-top: 8px; width: 100%; }
    .secure-link-copy { flex-direction: column; }
    .customer-access-user__heading { align-items: flex-start; flex-direction: column; }
    .customer-login-directory-filter { grid-template-columns: 1fr; }
    .customer-login-directory-filter .button { width: 100%; }
    .agreement-vantage-panel .record-grid { grid-template-columns: 1fr; }
    .customer-login-row > summary { gap: 10px; grid-template-columns: minmax(0, 1fr) auto 16px; padding: 14px; }
    .customer-login-row__accounts { display: none; }
    .customer-login-row__details { padding: 5px 14px 15px; }
    .customer-login-pagination { align-items: stretch; flex-direction: column; gap: 10px; }
    .customer-login-pagination > div, .customer-login-pagination .button { width: 100%; }
    .customer-access-permissions { align-items: flex-start; flex-direction: column; }
    .customer-access-permissions .button { margin-left: 0; width: 100%; }
    .customer-site-choice-grid { grid-template-columns: 1fr; }
    .customer-access-request { grid-template-columns: 1fr; }
    .customer-access-request__actions { grid-template-columns: 1fr; }
}
