:root {
    --canvas: #ffffff;
    --sidebar: #071c3b;
    --sidebar-secondary: #0b294d;
    --text: #071a38;
    --muted: #60708d;
    --border: #d6e1ed;
    --accent: #009bd2;
    --accent-dark: #007eae;
    --healthy: #00b785;
    --attention: #f2a000;
    --information: #eff8fd;
    --focus: #ffbf47;
    --sidebar-width: 232px;
    --radius-small: 8px;
    --radius-control: 10px;
    --shadow-dialog: 0 24px 70px rgb(7 26 56 / 22%);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--canvas);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 100vh;
    padding: 24px 10px;
    background: var(--sidebar);
    color: #ffffff;
}

.brand {
    display: inline-flex;
    align-items: flex-start;
    color: inherit;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: .2px;
    line-height: 1;
    text-decoration: none;
}

.brand strong {
    color: #18a8dd;
    font-weight: 750;
}

.brand sup {
    margin: 1px 0 0 3px;
    font-size: 9px;
    font-weight: 700;
}

.brand--sidebar {
    margin: 2px 14px 30px;
}

.navigation {
    display: grid;
    gap: 5px;
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-control);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
}

.nav-link svg {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-link.is-active {
    background: #0d527a;
}

.nav-link.is-active::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
    background: #1cb8e8;
    content: "";
}

.nav-link.is-disabled {
    cursor: default;
    opacity: .92;
}

.workspace {
    min-width: 0;
}

.desktop-topbar {
    display: flex;
    height: 56px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 36px;
    border-bottom: 1px solid var(--border);
}

.account-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--muted);
    font-size: 13px;
}

.account-name {
    color: var(--text);
    font-weight: 700;
}

.account-email {
    padding-right: 13px;
    border-right: 1px solid var(--border);
}

.sign-out-button,
.mobile-account button {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    cursor: pointer;
    font-weight: 700;
}

.sign-out-button:hover,
.mobile-account button:hover {
    text-decoration: underline;
}

.setup-badge {
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff4dc;
    color: #8a5c00;
    font-size: 12px;
    font-weight: 750;
}

.mobile-account {
    display: none;
}

.mobile-header {
    display: none;
}

.main-content {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding: 26px 36px 20px;
}

.page-heading {
    margin-bottom: 27px;
}

.page-heading h1,
.section h2,
.section h3,
.empty-chart-message h3,
.pair-dialog h2 {
    margin: 0;
    color: var(--text);
}

.page-heading h1 {
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 750;
    letter-spacing: -.9px;
    line-height: 1.08;
}

.page-heading p {
    max-width: 930px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.section {
    border-bottom: 1px solid var(--border);
}

.section > h2,
.section-toolbar h2 {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.35px;
    line-height: 1.25;
}

.setup-section {
    padding-bottom: 28px;
}

.setup-rail {
    display: grid;
    align-items: stretch;
    margin-top: 16px;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

.setup-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 20px;
    padding: 7px 28px 7px 10px;
    border-right: 1px solid var(--border);
}

.setup-item + .setup-item {
    padding-left: 38px;
}

.setup-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 auto;
    fill: none;
    stroke: #0a2a50;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.setup-item h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.status span {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.status.is-healthy {
    color: var(--healthy);
}

.status.is-attention {
    color: var(--attention);
}

.primary-button,
.secondary-button,
.icon-button,
.range-selector button {
    border: 0;
    cursor: pointer;
}

.primary-button {
    display: inline-flex;
    min-width: 224px;
    min-height: 58px;
    align-self: center;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-left: 36px;
    padding: 14px 22px;
    border-radius: var(--radius-control);
    background: var(--accent);
    color: #ffffff;
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 140ms ease, transform 140ms ease;
}

.primary-button:hover {
    background: var(--accent-dark);
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.measurement-section {
    padding: 24px 0 24px;
}

.measurement-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.measurement-heading h2 {
    font-size: 24px;
}

.measurement-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.measurement-heading .test-now-button {
    min-width: 138px;
    min-height: 46px;
    margin: 0;
    padding: 10px 18px;
    font-size: 15px;
}

.metric-rail {
    display: grid;
    margin: 18px 0 20px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-rail > div {
    min-width: 0;
    padding: 0 36px;
    border-right: 1px solid var(--border);
}

.metric-rail > div:first-child {
    padding-left: 62px;
}

.metric-rail > div:last-child {
    border-right: 0;
}

.metric-rail dt {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.3;
}

.metric-rail dd {
    margin: 12px 0 0;
    color: #314462;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.metric-rail dd span {
    margin-right: 6px;
    color: var(--text);
    font-size: 30px;
}

.information-notice {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-radius: var(--radius-small);
    background: var(--information);
    color: var(--muted);
    font-size: 16px;
}

.information-notice svg {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.provisioning-notice {
    margin: -6px 0 28px;
    border: 1px solid #bee2f2;
}

.provisioning-notice strong {
    color: var(--text);
}

.history-section {
    padding: 22px 0 25px;
}

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.range-selector {
    display: inline-grid;
    overflow: hidden;
    border: 1px solid #bfcddd;
    border-radius: 8px;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
}

.range-selector button {
    min-height: 40px;
    padding: 8px 18px;
    background: #ffffff;
    color: #425470;
    font-size: 14px;
    font-weight: 600;
}

.range-selector button + button {
    border-left: 1px solid #d6e1ed;
}

.range-selector button:hover {
    background: #f4f9fc;
}

.range-selector button.is-selected {
    background: var(--accent);
    color: #ffffff;
}

.chart-frame {
    display: grid;
    min-height: 300px;
    margin-top: 22px;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: minmax(240px, 1fr) 30px;
}

.y-axis {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 10px 1px 0;
    color: #647796;
    font-size: 12px;
    text-align: right;
}

.chart-plot {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    min-width: 0;
    place-items: center;
    border-bottom: 1px solid #8396b2;
    border-left: 1px solid #8396b2;
    background-image:
        repeating-linear-gradient(to bottom, transparent 0, transparent calc(20% - 1px), #d6e1ed 20%),
        repeating-linear-gradient(to right, transparent 0, transparent calc(16.666% - 1px), #d6e1ed 16.666%);
}

.empty-chart-message {
    max-width: 580px;
    padding: 24px;
    background: rgb(255 255 255 / 92%);
    text-align: center;
}

.empty-chart-message h3 {
    font-size: 17px;
    font-weight: 700;
}

.empty-chart-message p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.x-axis {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-top: 8px;
    color: #647796;
    font-size: 12px;
}

.content-section {
    min-height: 550px;
    padding: 4px 0 32px;
}

.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.content-card h2,
.action-toolbar h2,
.empty-state h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.3;
}

.content-card p,
.action-toolbar p,
.empty-state p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.card-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.data-table-wrapper {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th,
.data-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    background: #f5f9fc;
    color: #3d506d;
    font-size: 13px;
    font-weight: 700;
}

.data-table td {
    color: var(--muted);
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table .empty-table {
    padding: 46px 20px;
    text-align: center;
}

.empty-state {
    display: grid;
    min-height: 310px;
    margin-top: 22px;
    place-items: center;
    align-content: center;
    padding: 40px 24px;
    border: 1px dashed #b9c9da;
    border-radius: 12px;
    background: #f9fcfe;
    text-align: center;
}

.empty-state svg {
    width: 47px;
    height: 47px;
    margin-bottom: 17px;
    fill: none;
    stroke: var(--accent-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.empty-state p {
    max-width: 610px;
}

.action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.action-toolbar .primary-button {
    flex: 0 0 auto;
    margin: 0;
}

.agent-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.download-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 1px solid #aebed0;
    border-radius: 9px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.download-button:hover {
    background: #eff8fd;
}

.agent-download-integrity {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.agent-download-integrity code {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 11px;
}

.settings-list {
    margin: 20px 0 0;
}

.settings-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.settings-list dt {
    color: var(--muted);
    font-size: 14px;
}

.settings-list dd {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.settings-layout {
    display: grid;
    align-items: start;
    gap: 18px;
    grid-template-columns: minmax(0, 2fr) minmax(270px, .75fr);
}

.service-layout {
    display: grid;
    align-items: start;
    gap: 18px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .75fr);
}

.mode-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-option {
    display: grid;
    min-width: 0;
    min-height: 138px;
    cursor: pointer;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    padding: 19px;
    border: 1px solid #aebed0;
    border-radius: 10px;
    background: #ffffff;
}

.mode-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgb(0 155 210 / 13%);
    background: #f4fbfe;
}

.mode-option input,
.eligibility-grid input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent-dark);
}

.mode-option strong,
.mode-option small,
.eligibility-grid strong,
.eligibility-grid small {
    display: block;
}

.mode-option strong {
    font-size: 16px;
}

.mode-option small,
.eligibility-grid small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.48;
}

.policy-field > span em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.policy-field--wide {
    grid-column: 1 / -1;
}

.rate-pair > div {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rate-pair > div > label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.rate-pair .input-with-unit {
    display: grid;
}

.eligibility-grid {
    display: grid;
    gap: 11px;
    margin-top: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eligibility-grid > label {
    display: grid;
    min-width: 0;
    cursor: pointer;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfdff;
}

.field-note--above {
    margin-top: 14px;
}

.service-privacy-note {
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.5;
}

.service-privacy-note strong {
    color: var(--text);
}

.service-assurance-card {
    position: sticky;
    top: 20px;
}

.service-assurance-card > p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.settings-message {
    margin-bottom: 18px;
    padding: 15px 18px;
    border-left: 4px solid;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.settings-message strong {
    display: block;
    margin-bottom: 3px;
}

.settings-message ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.settings-message--success {
    border-color: var(--healthy);
    background: #eafaf5;
    color: #08694f;
}

.settings-message--error {
    border-color: #c63e3e;
    background: #fff1f1;
    color: #7e2020;
}

.policy-form {
    padding: 30px;
}

.policy-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.policy-form-heading p,
.status-card-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.version-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf7fc;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 750;
}

.policy-fieldset {
    min-width: 0;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.policy-fieldset legend {
    width: 100%;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
}

.policy-fieldset legend span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.policy-fields {
    display: grid;
    gap: 19px 22px;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-fields--compact {
    max-width: 520px;
}

.policy-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.policy-field input,
.policy-field select {
    width: 100%;
    height: 45px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #aebed0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 500;
}

.policy-field input:hover,
.policy-field select:hover {
    border-color: #7c91a9;
}

.policy-field small,
.field-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.input-with-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.input-with-unit input {
    border-radius: 8px 0 0 8px;
}

.input-with-unit span {
    display: flex;
    min-width: 64px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #aebed0;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #f4f8fb;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.field-note {
    margin: 11px 0 0;
}

.policy-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.policy-actions p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.policy-actions .primary-button {
    min-width: 210px;
    min-height: 50px;
    flex: 0 0 auto;
    margin: 0;
    font-size: 15px;
}

.status-card-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pairing-result {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #8ddbc4;
    border-radius: 12px;
    background: #eefbf7;
}

.pairing-result h2 {
    margin: 0;
    font-size: 22px;
}

.pairing-result p {
    margin: 8px 0 0;
    color: #365f56;
    font-size: 14px;
    line-height: 1.5;
}

.pairing-result code {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid #5fc7a9;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(17px, 2.2vw, 24px);
    font-weight: 750;
    letter-spacing: 1.4px;
}

.pairing-security-note {
    font-size: 12px !important;
}

.agent-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.agent-card {
    display: grid;
    align-items: start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    grid-template-columns: auto minmax(0, 1fr);
}

.agent-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 10px;
    background: #eaf7fc;
    color: var(--accent-dark);
}

.agent-card-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.agent-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.agent-card-title h2 {
    margin: 0;
    font-size: 19px;
}

.agent-status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff5dc;
    color: #8a5c00;
    font-size: 12px;
    font-weight: 750;
}

.agent-status--active {
    background: #eafaf5;
    color: #08775a;
}

.agent-status--revoked {
    background: #fff1f1;
    color: #8c2b2b;
}

.agent-card dl {
    display: grid;
    gap: 12px;
    margin: 17px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-card dl div {
    min-width: 0;
}

.agent-card dt {
    color: var(--muted);
    font-size: 12px;
}

.agent-card dd {
    overflow-wrap: anywhere;
    margin: 4px 0 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}

.agent-test-form {
    margin-top: 16px;
}

.agent-test-form .secondary-button {
    min-height: 40px;
    padding: 8px 18px;
}

.test-command-message {
    margin: -6px 0 24px;
}

.text-healthy {
    color: var(--healthy) !important;
}

.text-attention {
    color: var(--attention) !important;
}

.page-footer {
    padding-top: 15px;
    color: #647796;
    font-size: 12px;
}

.page-footer span {
    margin: 0 7px;
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: transparent;
}

.icon-button:hover {
    background: #eff6fa;
}

.icon-button svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.pair-dialog {
    width: min(520px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-dialog);
    color: var(--text);
}

.pair-dialog form {
    padding-bottom: 24px;
}

.pair-dialog::backdrop {
    background: rgb(7 28 59 / 54%);
}

.dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 0;
}

.pair-dialog h2 {
    font-size: 23px;
    line-height: 1.25;
}

.pair-dialog p {
    margin: 16px 24px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.pair-agent-field {
    margin: 20px 24px 0;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 24px 24px 0;
}

.dialog-actions .secondary-button,
.dialog-actions .primary-button {
    min-width: 145px;
    min-height: 46px;
    margin: 0;
    font-size: 14px;
}

.secondary-button {
    min-width: 104px;
    min-height: 42px;
    margin: 24px;
    padding: 9px 18px;
    border: 1px solid #bfcddd;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.secondary-button:hover {
    background: #f4f9fc;
}

.login-page {
    background:
        radial-gradient(circle at 78% 18%, rgb(0 155 210 / 10%), transparent 34%),
        linear-gradient(145deg, #061a38 0%, #0a2b51 45%, #0a3e64 100%);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(460px, 100%);
    padding: 38px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgb(0 9 27 / 34%);
}

.login-brand {
    color: var(--text);
}

.login-heading {
    margin: 40px 0 27px;
}

.eyebrow {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 9px 0 0;
    font-size: 31px;
    letter-spacing: -.6px;
    line-height: 1.15;
}

.login-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.form-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-left: 3px solid #c63e3e;
    border-radius: 6px;
    background: #fff1f1;
    color: #7e2020;
    font-size: 14px;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    height: 48px;
    padding: 10px 12px;
    border: 1px solid #aebed0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 500;
}

.form-field input:hover {
    border-color: #7c91a9;
}

.login-submit {
    width: 100%;
    min-height: 49px;
    margin: 3px 0 0;
    border: 0;
    cursor: pointer;
}

.login-footnote {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.login-footnote span {
    margin: 0 6px;
}

@media (max-width: 1120px) {
    .setup-rail {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .setup-item,
    .setup-item + .setup-item {
        gap: 14px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .setup-icon {
        width: 39px;
        height: 39px;
    }

    .primary-button {
        grid-column: 1 / -1;
        margin: 22px 0 0;
    }

    .metric-rail > div,
    .metric-rail > div:first-child {
        padding: 0 22px;
    }

    .settings-layout,
    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-assurance-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .measurement-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .measurement-heading form,
    .measurement-heading .test-now-button {
        width: 100%;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 73px 0 auto;
        z-index: 30;
        display: none;
        min-height: 0;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
        padding: 12px 14px 18px;
        border-top: 1px solid rgb(255 255 255 / 12%);
        box-shadow: 0 18px 40px rgb(7 28 59 / 24%);
    }

    .sidebar.is-open {
        display: block;
    }

    .mobile-account {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin: 12px 8px 0;
        padding: 16px 10px 4px;
        border-top: 1px solid rgb(255 255 255 / 16%);
        color: #ffffff;
        font-size: 14px;
    }

    .mobile-account button {
        color: #64cff2;
    }

    .brand--sidebar {
        display: none;
    }

    .nav-link {
        min-height: 48px;
    }

    .desktop-topbar {
        display: none;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        min-height: 73px;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid var(--border);
        background: rgb(255 255 255 / 96%);
    }

    .brand--mobile {
        color: var(--text);
        font-size: 24px;
    }

    .main-content {
        padding: 28px 20px 18px;
    }

    .page-heading {
        margin-bottom: 34px;
    }

    .page-heading h1 {
        font-size: 34px;
        letter-spacing: -.7px;
    }

    .page-heading p {
        margin-top: 12px;
        font-size: 18px;
    }

    .section > h2,
    .section-toolbar h2 {
        font-size: 26px;
    }

    .setup-section {
        padding-bottom: 23px;
    }

    .setup-rail {
        display: block;
        margin-top: 18px;
    }

    .setup-item,
    .setup-item + .setup-item {
        gap: 22px;
        min-height: 104px;
        padding: 20px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .setup-icon {
        width: 50px;
        height: 50px;
    }

    .setup-item h3 {
        font-size: 19px;
    }

    .status {
        font-size: 18px;
    }

    .primary-button {
        width: 100%;
        min-height: 62px;
        margin: 16px 0 0;
        font-size: 18px;
    }

    .measurement-section {
        padding-top: 24px;
    }

    .metric-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-rail > div,
    .metric-rail > div:first-child {
        min-height: 108px;
        padding: 16px 24px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .metric-rail > div:nth-child(2n) {
        border-right: 0;
    }

    .metric-rail > div:last-child {
        border-right: 1px solid var(--border);
    }

    .metric-rail dt {
        font-size: 16px;
    }

    .metric-rail dd {
        font-size: 22px;
    }

    .information-notice {
        min-height: 76px;
        font-size: 16px;
    }

    .section-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .range-selector {
        width: 100%;
    }

    .range-selector button {
        min-height: 48px;
        font-size: 15px;
    }

    .chart-frame {
        min-height: 330px;
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-rows: minmax(270px, 1fr) 34px;
    }

    .x-axis span:nth-child(even) {
        display: none;
    }

    .empty-chart-message {
        padding: 20px 12px;
    }

    .empty-chart-message p {
        font-size: 13px;
    }

    .card-grid,
    .card-grid--three {
        grid-template-columns: 1fr;
    }

    .policy-form {
        padding: 22px 18px;
    }

    .policy-form-heading,
    .policy-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .policy-fields {
        grid-template-columns: 1fr;
    }

    .mode-grid,
    .eligibility-grid,
    .rate-pair > div {
        grid-template-columns: 1fr;
    }

    .policy-actions .primary-button {
        width: 100%;
    }

    .agent-card dl {
        grid-template-columns: 1fr;
    }

    .action-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .agent-toolbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .action-toolbar .primary-button {
        width: 100%;
    }

    .download-button {
        width: 100%;
    }

    .page-footer {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .main-content {
        padding-inline: 16px;
    }

    .page-heading h1 {
        font-size: 31px;
    }

    .section > h2,
    .section-toolbar h2 {
        font-size: 24px;
    }

    .metric-rail > div,
    .metric-rail > div:first-child {
        padding-inline: 16px;
    }

    .agent-card {
        grid-template-columns: 1fr;
    }

    .agent-card-title,
    .dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dialog-actions .secondary-button,
    .dialog-actions .primary-button {
        width: 100%;
    }

    .login-shell {
        padding: 0;
    }

    .login-panel {
        min-height: 100vh;
        padding: 32px 24px;
        border: 0;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}



/* LineProof dashboard v8 */
.lp-dashboard-stage {
    position: relative;
    overflow: hidden;
    margin: -4px 0 26px;
    border: 1px solid #163e66;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgb(2 17 36 / 22%), rgb(2 17 36 / 54%)),
        url('/assets/network-background.svg') center/cover no-repeat;
    box-shadow: 0 22px 52px rgb(7 28 59 / 14%);
    color: #fff;
}
.lp-stage-overlay {
    padding: 24px;
    background: linear-gradient(180deg, rgb(4 20 43 / 16%), rgb(4 20 43 / 38%));
    backdrop-filter: saturate(112%);
}
.lp-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
}
.lp-dashboard-header h2 {
    margin: 3px 0 5px;
    color: #fff;
    font-size: 28px;
    letter-spacing: -.35px;
}
.lp-dashboard-header p {
    margin: 0;
    color: #d2e8f6;
    font-size: 14px;
}
.lp-eyebrow {
    display: block;
    color: #6fd7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .85px;
    text-transform: uppercase;
}
.lp-test-button {
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid rgb(255 255 255 / 26%);
    border-radius: 10px;
    background: #049fd7;
    color: #fff;
    cursor: pointer;
    font-weight: 750;
}
.lp-test-button:hover { background: #16afe8; }
.lp-health-strip {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lp-health-strip > div {
    display: grid;
    position: relative;
    min-height: 66px;
    padding: 12px 13px 11px 32px;
    border: 1px solid rgb(164 213 240 / 20%);
    border-radius: 11px;
    background: rgb(5 25 51 / 67%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}
.lp-health-strip b {
    color: #fff;
    font-size: 13px;
}
.lp-health-strip small {
    margin-top: 3px;
    color: #b9d2e4;
    font-size: 12px;
}
.lp-dot-ok,.lp-dot-warn {
    position: absolute;
    top: 17px;
    left: 13px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.lp-dot-ok { background: #19d39a; box-shadow: 0 0 12px rgb(25 211 154 / 65%); }
.lp-dot-warn { background: #f4b342; box-shadow: 0 0 12px rgb(244 179 66 / 55%); }
.lp-kpi-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lp-kpi-card {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid rgb(159 210 238 / 20%);
    border-radius: 12px;
    background: rgb(5 23 48 / 78%);
}
.lp-kpi-card > span {
    display: block;
    color: #c1d8e9;
    font-size: 12px;
}
.lp-kpi-card strong {
    display: inline-block;
    margin-top: 7px;
    color: #fff;
    font-size: 28px;
    font-weight: 760;
    letter-spacing: -.65px;
    line-height: 1.05;
}
.lp-kpi-card em {
    display: block;
    margin-top: 4px;
    color: #8facc1;
    font-size: 11px;
    font-style: normal;
}
.lp-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #56ddb0;
    font-size: 11px;
}
.lp-kpi-card small.is-alert { color: #ffba63; }
.lp-dashboard-grid {
    display: grid;
    align-items: stretch;
    gap: 14px;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr);
}
.lp-chart-card,.lp-attention-card {
    border: 1px solid rgb(160 211 240 / 20%);
    border-radius: 13px;
    background: rgb(5 23 48 / 79%);
}
.lp-chart-card { padding: 17px 18px 13px; }
.lp-attention-card { padding: 18px; }
.lp-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.lp-card-heading h3,.lp-attention-card h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 19px;
}
.lp-chart-legend {
    display: flex;
    gap: 14px;
    color: #bad2e4;
    font-size: 11px;
}
.lp-chart-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
}
.lp-chart-legend .is-download { background: #2fc9ff; }
.lp-chart-legend .is-upload { background: #29d397; }
.lp-throughput-chart {
    width: 100%;
    min-height: 235px;
    margin-top: 3px;
}
.lp-throughput-chart .axis { stroke: #6e8aa4; stroke-width: 1; }
.lp-throughput-chart .grid { stroke: #314d68; stroke-width: 1; }
.lp-throughput-chart .target { stroke: #a4b5c4; stroke-width: 1.5; stroke-dasharray: 6 5; }
.lp-throughput-chart .threshold { stroke: #f1a641; stroke-width: 1.5; stroke-dasharray: 5 5; }
.lp-throughput-chart .download-line { fill: none; stroke: #2fc9ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lp-throughput-chart .upload-line { fill: none; stroke: #29d397; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lp-throughput-chart text { fill: #8fa9be; font-size: 12px; font-family: "Segoe UI", Arial, sans-serif; }
.lp-throughput-chart .target-label { fill: #cad7e1; }
.lp-throughput-chart .threshold-label { fill: #f6b65b; }
.lp-chart-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    padding-top: 10px;
    border-top: 1px solid rgb(157 207 235 / 15%);
    color: #9db5c8;
    font-size: 11px;
}
.lp-chart-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    color: #a7bed0;
}
.lp-attention-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgb(154 204 232 / 14%);
}
.lp-attention-row b { color: #d7e6f1; font-size: 12px; }
.lp-attention-row span { color: #9eb6c9; font-size: 12px; text-align: right; }
.lp-attention-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.lp-attention-actions a {
    flex: 1;
    padding: 9px 10px;
    border: 1px solid rgb(113 191 229 / 36%);
    border-radius: 8px;
    color: #7bdcff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.lp-attention-actions a:hover { background: rgb(24 126 174 / 22%); }
.lp-recent-history { padding-top: 4px; }
.lp-text-link { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.lp-text-link:hover { text-decoration: underline; }

@media (max-width: 1080px) {
    .lp-health-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
    .lp-stage-overlay { padding: 16px; }
    .lp-dashboard-header { flex-direction: column; }
    .lp-health-strip,.lp-kpi-grid { grid-template-columns: 1fr; }
    .lp-chart-legend { display: none; }
    .lp-kpi-card strong { font-size: 25px; }
}


.lp-trace-heading { margin-top: 28px; }
.lp-trace-empty { min-height: 220px; }
.lp-evidence-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lp-evidence-card { min-width: 0; }
.lp-route-list {
    display: grid;
    gap: 0;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
}
.lp-route-list > div {
    display: grid;
    gap: 12px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--border);
    grid-template-columns: 72px minmax(0, 1fr) 78px;
    font-size: 12px;
}
.lp-route-list > div:last-child { border-bottom: 0; }
.lp-route-list b { color: var(--text); }
.lp-route-list span { overflow-wrap: anywhere; color: var(--muted); }
.lp-route-list em { color: var(--text); font-style: normal; text-align: right; }

.lp-report-filter {
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7fbfd;
}
.lp-report-filter > div {
    display: grid;
    gap: 6px;
}
.lp-report-filter span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.lp-report-filter input {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #b8c8d8;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}
.lp-report-filter .primary-button {
    min-width: 170px;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
}
.lp-report-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 20px 22px;
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    background: #eff8fd;
}
.lp-report-summary h2 { margin: 4px 0 5px; font-size: 22px; }
.lp-report-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.lp-report-kpis {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lp-report-finding {
    margin-top: 18px;
    border-left: 5px solid #2a95be;
}
.lp-report-note { margin-top: 18px; }

@media (max-width: 900px) {
    .lp-evidence-grid,
    .lp-report-kpis { grid-template-columns: 1fr; }
    .lp-report-filter { flex-wrap: wrap; }
}


/* LineProof dashboard v9 approved visual direction */
.main-content--overview {
    max-width: none;
    padding-top: 18px;
}
.main-content--overview .lp-dashboard-stage {
    margin-top: 0;
}
.lp-dashboard-stage {
    min-height: 680px;
    background:
        linear-gradient(180deg, rgb(4 18 38 / 12%), rgb(4 18 38 / 48%)),
        url('/assets/network-background.svg') center 38%/cover no-repeat;
}
.lp-stage-overlay {
    padding: 26px;
    background: linear-gradient(180deg, rgb(4 20 43 / 10%), rgb(4 20 43 / 26%));
}
.lp-dashboard-header {
    min-height: 148px;
    align-items: flex-start;
    padding: 4px 4px 8px;
}
.lp-dashboard-header h2 {
    margin-top: 7px;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 780;
    letter-spacing: -1.3px;
    line-height: 1.02;
    text-shadow: 0 3px 18px rgb(0 0 0 / 20%);
}
.lp-hero-tagline {
    margin-top: 10px !important;
    color: #eef8ff !important;
    font-size: 17px !important;
    font-weight: 550;
}
.lp-hero-service {
    margin-top: 10px !important;
    color: #b9d8ea !important;
    font-size: 13px !important;
}
.lp-health-strip > div,
.lp-kpi-card,
.lp-chart-card,
.lp-attention-card {
    background: rgb(255 255 255 / 92%);
    border-color: rgb(255 255 255 / 72%);
    box-shadow: 0 12px 30px rgb(3 21 46 / 16%);
    backdrop-filter: blur(8px);
}
.lp-health-strip b,
.lp-kpi-card strong,
.lp-card-heading h3,
.lp-attention-card h3 {
    color: #071a38;
}
.lp-health-strip small,
.lp-kpi-card > span,
.lp-kpi-card em,
.lp-attention-row span,
.lp-attention-row b,
.lp-chart-foot {
    color: #60708d;
}
.lp-kpi-card small {
    color: #148a68;
}
.lp-kpi-card small.is-alert {
    color: #c86914;
}
.lp-chart-legend {
    color: #60708d;
}
.lp-throughput-chart .axis { stroke: #8294a8; }
.lp-throughput-chart .grid { stroke: #dbe4ec; }
.lp-throughput-chart .target { stroke: #71849a; }
.lp-throughput-chart .threshold { stroke: #f1a641; }
.lp-throughput-chart text { fill: #60708d; }
.lp-throughput-chart .target-label { fill: #52667c; }
.lp-throughput-chart .threshold-label { fill: #b67819; }
.lp-attention-row {
    border-bottom-color: #e5ebf1;
}
.lp-attention-actions a {
    border-color: #bdd8e8;
    background: #f3f9fc;
    color: #007eae;
}
.lp-attention-actions a:hover {
    background: #e6f4fa;
}
.lp-test-button {
    min-width: 174px;
    box-shadow: 0 8px 24px rgb(0 91 140 / 20%);
}
@media (max-width: 650px) {
    .main-content--overview { padding-top: 12px; }
    .lp-dashboard-header { min-height: 0; }
    .lp-dashboard-header h2 { font-size: 36px; }
    .lp-hero-tagline { font-size: 15px !important; }
}


/* LineProof dashboard v10 - approved reference layout */
body { background:#eef5fb; }
.app-shell { grid-template-columns:232px minmax(0,1fr); }
.sidebar {
    background:
      radial-gradient(circle at 38% 78%, rgb(32 144 255 / 24%), transparent 32%),
      linear-gradient(180deg,#061b3a 0%,#092a56 100%);
}
.sidebar::after {
    content:"";
    position:absolute; inset:auto 0 0; height:42%;
    pointer-events:none;
    opacity:.9;
    background:url('/assets/network-background.svg') 14% 100%/640px auto no-repeat;
    mix-blend-mode:screen;
}
.navigation,.brand--sidebar,.mobile-account { position:relative; z-index:1; }
.desktop-topbar {
    height:68px;
    justify-content:space-between;
    padding:0 24px;
    border:0;
    background:
      linear-gradient(90deg,rgb(226 240 251 / 92%),rgb(180 215 245 / 78%)),
      url('/assets/network-background.svg') center 14%/cover no-repeat;
}
.lp-top-search {
    display:flex; align-items:center; gap:10px;
    width:min(410px,45vw); min-height:40px;
    padding:0 14px; border:1px solid rgb(255 255 255 / 70%);
    border-radius:8px; background:rgb(255 255 255 / 82%);
    box-shadow:0 6px 18px rgb(11 67 110 / 10%);
}
.lp-top-search svg { width:19px; height:19px; fill:none; stroke:#496b91; stroke-width:1.8; }
.lp-top-search input { width:100%; border:0; outline:0; background:transparent; color:#315477; }
.account-summary { color:#315477; }
.account-name { color:#15365a; }
.main-content--overview { padding:0 20px 20px; background:#eef5fb; }
.lp-dashboard-stage {
    min-height:0; margin:0 -20px 18px; border:0; border-radius:0;
    box-shadow:none;
    background:
      linear-gradient(180deg,rgb(4 27 55 / 16%) 0%,rgb(4 27 55 / 8%) 46%,#eef5fb 46%,#eef5fb 100%),
      url('/assets/network-background.svg') center top/cover no-repeat;
}
.lp-stage-overlay { padding:28px 20px 18px; background:transparent; backdrop-filter:none; }
.lp-dashboard-header { min-height:147px; padding:4px 8px 18px; margin:0; }
.lp-dashboard-header h2 { font-size:44px; letter-spacing:-1px; }
.lp-eyebrow { color:#c8eaff; letter-spacing:2px; }
.lp-hero-tagline { font-size:16px !important; }
.lp-hero-service { color:#e0eff9 !important; }
.lp-location-selector {
    display:flex; align-items:center; gap:10px;
    min-width:190px; padding:11px 14px;
    border:1px solid rgb(255 255 255 / 45%);
    border-radius:8px; background:rgb(9 61 111 / 72%); color:white;
    box-shadow:0 7px 24px rgb(0 33 67 / 18%);
}
.lp-location-selector b { flex:1; font-size:13px; }
.lp-health-strip { gap:12px; margin:-8px 0 16px; }
.lp-health-strip > div {
    display:flex; align-items:center; gap:12px; min-height:80px;
    padding:13px 16px; border:1px solid #d9e6f0; border-radius:10px;
    background:#fff; box-shadow:0 8px 22px rgb(25 75 115 / 10%);
}
.lp-health-strip > div > div { min-width:0; flex:1; }
.lp-status-icon {
    display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px;
    border-radius:10px;
}
.lp-status-icon svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; }
.lp-status-icon--blue { background:#e5f2ff; color:#1179e8; }
.lp-status-icon--green { background:#e2f7ee; color:#0aa66f; }
.lp-health-strip b { color:#17365d; font-size:13px; }
.lp-health-strip small { display:flex; align-items:center; gap:7px; margin-top:4px; color:#0b9b62; font-size:12px; }
.lp-health-strip small i { position:static; width:9px; height:9px; box-shadow:none; }
.lp-card-arrow { color:#58799c; font-size:23px; line-height:1; }
.lp-kpi-grid { gap:12px; margin-bottom:16px; }
.lp-kpi-card {
    display:flex; align-items:flex-start; gap:12px; min-height:132px;
    padding:16px; border:1px solid #dbe7f1; border-radius:10px;
    background:#fff; box-shadow:0 8px 22px rgb(25 75 115 / 8%);
}
.lp-kpi-icon {
    display:grid; place-items:center; width:43px; height:43px; flex:0 0 43px;
    border-radius:50%; color:#fff; font-size:22px; font-weight:800;
}
.lp-kpi-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; }
.lp-kpi-copy { min-width:0; flex:1; }
.lp-kpi-copy > span { display:block; color:#547093; font-size:12px; }
.lp-kpi-copy strong { display:block; margin-top:4px; color:#0f2c55; font-size:25px; letter-spacing:-.5px; white-space:nowrap; }
.lp-kpi-copy strong em { display:inline; color:#34567b; font-size:13px; font-style:normal; font-weight:600; }
.lp-kpi-copy > em { display:block; margin-top:3px; color:#557195; font-size:11px; font-style:normal; }
.lp-kpi-copy small { display:block; margin-top:4px; color:#36689a; font-size:11px; }
.lp-kpi-card--download .lp-kpi-icon { background:#137df1; }
.lp-kpi-card--upload .lp-kpi-icon { background:#08b476; }
.lp-kpi-card--average .lp-kpi-icon { background:#765ee8; }
.lp-kpi-card--incident .lp-kpi-icon { background:#ff4b55; }
.lp-kpi-card--latency .lp-kpi-icon { background:#8396b5; }
.lp-progress { height:8px; margin-top:12px; overflow:hidden; border-radius:99px; background:#e8f0f8; }
.lp-progress i { display:block; height:100%; border-radius:inherit; background:#1f91f4; }
.lp-kpi-card--upload .lp-progress i { background:#22c786; }
.lp-kpi-card--average .lp-progress i { background:#8872ee; }
.lp-mini-bars { display:flex; align-items:end; gap:5px; height:28px; margin-top:10px; }
.lp-mini-bars i { width:8px; background:#ff5a62; border-radius:2px 2px 0 0; }
.lp-mini-bars i:nth-child(1){height:12px}.lp-mini-bars i:nth-child(2){height:26px}.lp-mini-bars i:nth-child(3){height:10px}.lp-mini-bars i:nth-child(4){height:17px}.lp-mini-bars i:nth-child(5){height:23px}.lp-mini-bars i:nth-child(6){height:8px}.lp-mini-bars i:nth-child(7){height:19px}
.lp-sparkline { height:30px; margin-top:10px; position:relative; border-bottom:2px solid #cdd9e7; }
.lp-sparkline i { position:absolute; inset:8px 0 auto; height:2px; background:#6e8db6; transform:skewY(-7deg); }
.lp-dashboard-grid { gap:14px; grid-template-columns:minmax(0,2.15fr) minmax(300px,.9fr); }
.lp-chart-card,.lp-attention-card {
    border:1px solid #dbe7f1; border-radius:11px; background:#fff;
    box-shadow:0 8px 22px rgb(25 75 115 / 8%);
}
.lp-chart-card { padding:18px 18px 12px; }
.lp-card-heading h3,.lp-attention-card h3 { color:#112f56; font-size:20px; }
.lp-card-heading .lp-eyebrow { color:#37a5e6; letter-spacing:.7px; }
.lp-throughput-chart { min-height:300px; }
.lp-chart-foot { border-top:0; padding-top:4px; color:#71849b; }
.lp-attention-card { padding:14px; }
.lp-attention-heading { display:flex; align-items:center; gap:10px; padding:4px 4px 10px; }
.lp-attention-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:8px; background:#e8f4ff; color:#1786ef; }
.lp-attention-item {
    display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; align-items:center;
    min-height:88px; margin-top:10px; padding:12px; border-radius:9px; text-decoration:none;
}
.lp-attention-item b { display:block; color:#17365d; font-size:13px; }
.lp-attention-item small { display:block; margin-top:4px; color:#5d7594; font-size:11px; line-height:1.35; }
.lp-attention-symbol { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; font-weight:800; }
.lp-attention-badge { align-self:start; padding:5px 9px; border-radius:7px; color:#fff; font-size:10px; font-weight:800; }
.lp-attention-item--red { background:#fff0f1; }.lp-attention-item--red .lp-attention-symbol,.lp-attention-item--red .lp-attention-badge { background:#ef424d; }
.lp-attention-item--amber { background:#fff8e8; }.lp-attention-item--amber .lp-attention-symbol,.lp-attention-item--amber .lp-attention-badge { background:#e3aa32; }
.lp-attention-item--green { background:#ecfaf4; }.lp-attention-item--green .lp-attention-symbol,.lp-attention-item--green .lp-attention-badge { background:#0ca66f; }
.lp-attention-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.lp-attention-actions form { margin:0; }
.lp-attention-actions button,.lp-attention-actions a {
    width:100%; min-height:44px; display:grid; place-items:center; margin:0; padding:9px 12px;
    border:1px solid #bdd7ec; border-radius:8px; background:#fff; color:#0879c2;
    font-size:12px; font-weight:800; text-decoration:none; cursor:pointer;
}
.lp-attention-actions button { background:#0c7ff2; color:white; border-color:#0c7ff2; }
.lp-recent-history {
    margin:0; padding:14px 16px 20px; border:1px solid #dbe7f1; border-radius:11px;
    background:#fff; box-shadow:0 8px 22px rgb(25 75 115 / 8%);
}
.lp-incident-table { margin-top:12px; }
.lp-incident-table .data-table { min-width:760px; }
.lp-status-pill { display:inline-block; padding:4px 9px; border-radius:999px; font-size:11px; font-weight:800; background:#e8eef5; color:#4c6480; }
.lp-status-pill--open,.lp-status-pill--confirmed { background:#ffe7e9; color:#d13d47; }
.lp-status-pill--recovered,.lp-status-pill--closed { background:#e4f8ef; color:#0a8c60; }
.lp-table-link { color:#087dbd; font-weight:700; text-decoration:none; }
.lp-traces-summary {
    display:flex; align-items:center; justify-content:space-between; gap:20px;
    padding:20px 22px; border:1px solid #dbe7f1; border-radius:12px; background:#fff;
}
.lp-traces-summary h2 { margin:4px 0; }
.lp-traces-summary p { max-width:820px; margin:0; color:#60708d; }
.lp-trace-timeline { display:grid; gap:18px; margin-top:18px; }
.lp-trace-card { padding:20px; border:1px solid #dbe7f1; border-radius:12px; background:#fff; box-shadow:0 8px 22px rgb(25 75 115 / 7%); }
.lp-trace-card-head { display:flex; justify-content:space-between; gap:18px; }
.lp-trace-card-head h2 { margin:7px 0 3px; font-size:20px; }
.lp-trace-card-head p { margin:0; color:#60708d; font-size:12px; }
.lp-trace-phase { display:inline-block; padding:5px 9px; border-radius:999px; background:#e8f4ff; color:#087dbd; font-size:10px; font-weight:800; text-transform:uppercase; }
.lp-trace-phase--loaded { background:#fff1df; color:#b46a00; }
.lp-trace-metrics { display:grid; gap:10px; margin:16px 0; grid-template-columns:repeat(4,minmax(0,1fr)); }
.lp-trace-metrics > div { padding:12px; border-radius:9px; background:#f6f9fc; }
.lp-trace-metrics span { display:block; color:#6b7f98; font-size:11px; }
.lp-trace-metrics strong { display:block; margin-top:4px; color:#16375d; font-size:16px; }
.lp-route-list--trace .lp-route-head { background:#edf4fa; }
@media(max-width:1080px){
 .desktop-topbar{padding:0 16px}.lp-top-search{width:360px}
 .lp-trace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .lp-top-search{display:none}.lp-dashboard-header h2{font-size:34px}
 .lp-location-selector{min-width:0}.lp-trace-metrics{grid-template-columns:1fr}
}


/* LineProof dashboard v11 - photographic hero/sidebar correction */
.sidebar {
    overflow:hidden;
    background:linear-gradient(180deg,#061a38 0%,#082d5d 100%);
}
.sidebar::after {
    content:"";
    position:absolute;
    left:-18%;
    right:-18%;
    bottom:-7%;
    height:58%;
    z-index:0;
    pointer-events:none;
    opacity:.88;
    background:url('/assets/sidebar-fibre.jpg') center 38%/cover no-repeat;
    transform:rotate(180deg) scale(1.08);
    transform-origin:center;
    filter:hue-rotate(-45deg) saturate(1.45) brightness(.88) contrast(1.08);
    mix-blend-mode:screen;
}
.sidebar::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(4,20,45,.06) 0%,rgba(4,20,45,.18) 48%,rgba(4,20,45,.82) 100%);
}
.brand--sidebar,.navigation,.mobile-account { position:relative; z-index:2; }

.desktop-topbar {
    background-image:
      linear-gradient(90deg,rgba(224,239,251,.94),rgba(167,205,238,.82)),
      url('/assets/hero-city.jpg?v=2');
    background-size:cover;
    background-position:center 44%;
}

.lp-dashboard-stage {
    background-color:#eef5fb;
    background-image:
      linear-gradient(180deg,rgba(5,24,49,.34) 0,rgba(5,24,49,.12) 260px,rgba(238,245,251,.96) 345px,#eef5fb 390px,#eef5fb 100%),
      url('/assets/network-arcs.svg'),
      url('/assets/hero-city.jpg?v=2');
    background-repeat:no-repeat,no-repeat,no-repeat;
    background-position:top center,top center,center 42%;
    background-size:100% 100%,100% 330px,100% 345px;
}
.lp-stage-overlay { background:transparent; }
.lp-dashboard-header {
    min-height:176px;
    padding-top:18px;
}
.lp-dashboard-header h2,
.lp-hero-tagline,
.lp-hero-service,
.lp-dashboard-header .lp-eyebrow {
    text-shadow:0 2px 12px rgba(0,18,40,.48);
}
.lp-dashboard-header h2 { max-width:780px; }
.lp-health-strip { margin-top:-10px; }

@media (max-width:1080px) {
    .lp-dashboard-stage {
        background-size:100% 100%,135% 330px,auto 345px;
        background-position:top center,top center,56% 42%;
    }
}
@media (max-width:650px) {
    .sidebar::after { height:46%; opacity:.7; }
    .lp-dashboard-stage {
        background-size:100% 100%,180% 300px,auto 315px;
        background-position:top center,top center,58% 38%;
    }
    .lp-dashboard-header { min-height:150px; }
}


/* LineProof dashboard v13 - dedicated photographic hero layer */
.lp-dashboard-stage {
    position: relative;
    overflow: hidden;
    background: #eef5fb;
    background-image: none;
}
.lp-dashboard-stage::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto 0;
    height: 350px;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4,20,43,.12) 0%, rgba(4,20,43,.08) 58%, rgba(238,245,251,.04) 78%, #eef5fb 100%),
        url('/assets/hero-city.jpg?v=3') center center / cover no-repeat;
}
.lp-dashboard-stage::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto 0;
    height: 340px;
    pointer-events: none;
    background: url('/assets/network-arcs.svg?v=2') center top / 100% 330px no-repeat;
    opacity: .92;
}
.lp-stage-overlay {
    position: relative;
    z-index: 1;
}
.lp-dashboard-header {
    min-height: 185px;
}
@media (max-width: 1080px) {
    .lp-dashboard-stage::before { background-position: center center; }
    .lp-dashboard-stage::after { background-size: 135% 330px; }
}
@media (max-width: 650px) {
    .lp-dashboard-stage::before { height: 315px; }
    .lp-dashboard-stage::after { height: 300px; background-size: 180% 300px; }
}


/* LineProof v14 - Fleet-inspired operations shell */
:root {
    --lp-bg: #f4f7fb;
    --lp-panel: #ffffff;
    --lp-navy: #071d3e;
    --lp-navy-2: #0b315d;
    --lp-blue: #1688e8;
    --lp-green: #16a875;
    --lp-red: #df4d57;
    --lp-amber: #d99a25;
    --lp-purple: #735fc7;
    --lp-shadow: 0 8px 24px rgb(19 55 91 / 8%);
}
body { background: var(--lp-bg); }
.app-shell { grid-template-columns: 248px minmax(0,1fr); }
.sidebar {
    padding: 26px 14px;
    background: linear-gradient(180deg,#071b38 0%,#08284f 72%,#071d3e 100%);
}
.sidebar::after { opacity: .26; height: 36%; }
.brand--sidebar { margin: 4px 14px 34px; font-size: 25px; letter-spacing: .3px; }
.navigation { gap: 4px; }
.nav-link {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #bed0e5;
    font-size: 14px;
    font-weight: 600;
}
.nav-link:hover { background: rgb(255 255 255 / 6%); color:#fff; }
.nav-link.is-active {
    background: linear-gradient(90deg,rgb(25 127 207 / 34%),rgb(24 115 188 / 14%));
    color:#fff;
}
.nav-link.is-active::before { width: 4px; background:#31baf0; }
.nav-link svg { width: 21px; height: 21px; }
.desktop-topbar {
    height: 64px;
    padding: 0 30px;
    border-bottom: 1px solid #dbe5ee;
    background: #fff;
}
.lp-top-search {
    width: min(440px,46vw);
    min-height: 38px;
    border: 1px solid #d9e3ed;
    background: #f7f9fc;
    box-shadow: none;
}
.account-summary { color:#60748d; }
.main-content {
    max-width: 1500px;
    padding: 28px 30px 22px;
}
.main-content--overview {
    padding: 24px 30px 22px;
    background: var(--lp-bg);
}
.page-heading {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dfe7ef;
}
.page-heading h1 { font-size: 31px; letter-spacing: -.5px; }
.page-heading p { font-size: 15px; }
.content-section { padding-top: 0; }
.content-card,
.agent-card,
.lp-trace-card,
.lp-traces-summary,
.lp-report-filter,
.lp-report-summary,
.lp-recent-history {
    border: 1px solid #dde6ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--lp-shadow);
}
.lp-dashboard-stage {
    margin: 0 0 18px;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--lp-shadow);
}
.lp-dashboard-stage::before,
.lp-dashboard-stage::after { display:none; }
.lp-stage-overlay { padding: 0; }
.lp-dashboard-header {
    min-height: 0;
    margin: 0;
    padding: 24px 26px 20px;
    border-radius: 12px 12px 0 0;
    background:
        linear-gradient(90deg,rgba(5,30,61,.96),rgba(5,43,83,.79)),
        url('/assets/hero-city.jpg?v=3') center 46%/cover no-repeat;
}
.lp-dashboard-header h2 {
    margin-top: 5px;
    font-size: clamp(30px,3.4vw,44px);
}
.lp-dashboard-header .lp-eyebrow { color:#80d9ff; }
.lp-hero-tagline { font-size:15px !important; }
.lp-hero-service { color:#c7dfef !important; }
.lp-location-selector {
    align-self:flex-start;
    background: rgb(255 255 255 / 11%);
    backdrop-filter: blur(5px);
}
.lp-health-strip {
    gap: 12px;
    margin: 0;
    padding: 18px 20px 0;
}
.lp-health-strip > div {
    min-height: 72px;
    border-radius: 9px;
    box-shadow: none;
}
.lp-status-icon { width:40px; height:40px; flex-basis:40px; border-radius:8px; }
.lp-kpi-grid {
    gap: 12px;
    margin: 0;
    padding: 14px 20px 0;
}
.lp-kpi-card {
    min-height: 122px;
    border-radius: 9px;
    box-shadow: none;
}
.lp-kpi-icon { width:40px; height:40px; flex-basis:40px; }
.lp-kpi-copy strong { font-size:23px; }
.lp-dashboard-grid {
    gap: 14px;
    padding: 14px 20px 20px;
}
.lp-chart-card,.lp-attention-card {
    border-radius: 9px;
    box-shadow: none;
}
.lp-throughput-chart { min-height: 280px; }
.lp-recent-history { margin-top: 0; padding: 16px 18px 18px; }
.section-toolbar { margin-top: 10px; }
.section-toolbar h2 { font-size:20px; }
.data-table-wrapper {
    margin-top: 16px;
    border-radius: 9px;
    box-shadow: none;
}
.data-table th { background:#f4f7fa; color:#4e6279; font-size:12px; }
.data-table td { font-size:13px; }
.data-table th,.data-table td { padding:13px 14px; }
.version-badge { background:#eef6fb; color:#23698f; }
.primary-button {
    min-width: 170px;
    min-height: 46px;
    border-radius: 8px;
    background: #0d7fd1;
    font-size: 14px;
}
.download-button { min-height:44px; border-radius:8px; }
.card-grid { gap:14px; }
.card-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.settings-layout,.service-layout { gap:16px; }
.policy-form { padding:26px; }
.policy-fieldset { margin-top:24px; }
.mode-option { min-height:120px; border-radius:8px; }
.empty-state {
    min-height:220px;
    border-radius:10px;
    background:#fbfcfe;
}
.lp-traces-page,.lp-operations-page { padding-top:0; }
.lp-page-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:20px 22px;
    border:1px solid #dde6ef;
    border-radius:10px;
    background:#fff;
    box-shadow:var(--lp-shadow);
}
.lp-page-toolbar h2 { margin:3px 0 4px; font-size:22px; }
.lp-page-toolbar p { margin:0; color:#60708d; font-size:13px; }
.lp-page-toolbar form { margin:0; }
.lp-toolbar-action { margin:0; }
.lp-summary-strip {
    display:grid;
    gap:12px;
    margin-top:14px;
    grid-template-columns:repeat(4,minmax(0,1fr));
}
.lp-summary-strip article {
    padding:16px 18px;
    border:1px solid #dde6ef;
    border-radius:9px;
    background:#fff;
    box-shadow:var(--lp-shadow);
}
.lp-summary-strip span { display:block; color:#6a7d94; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.45px; }
.lp-summary-strip strong { display:block; margin-top:6px; color:#15375e; font-size:21px; }
.lp-report-kpis { gap:12px; }
.lp-report-kpis .content-card { box-shadow:none; }
.lp-trace-card { box-shadow:none; }
.lp-trace-metrics > div { background:#f5f8fb; }
.page-footer { color:#8190a2; }

@media (max-width:1120px) {
    .app-shell { grid-template-columns: 220px minmax(0,1fr); }
    .lp-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .lp-dashboard-grid { grid-template-columns:1fr; }
    .lp-summary-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
    .app-shell { display:block; }
    .sidebar {
        position:fixed;
        inset:64px 0 auto 0;
        min-height:0;
        display:none;
        z-index:50;
        padding:14px;
    }
    .sidebar.is-open { display:block; }
    .brand--sidebar { display:none; }
    .navigation { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mobile-header {
        display:flex;
        position:sticky;
        top:0;
        z-index:60;
        height:64px;
        align-items:center;
        justify-content:space-between;
        padding:0 18px;
        border-bottom:1px solid #dbe5ee;
        background:#fff;
    }
    .desktop-topbar { display:none; }
    .main-content,.main-content--overview { padding:18px; }
    .lp-dashboard-header { border-radius:10px 10px 0 0; }
    .lp-health-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .lp-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .card-grid--three { grid-template-columns:1fr; }
}
@media (max-width:620px) {
    .navigation { grid-template-columns:1fr; }
    .main-content,.main-content--overview { padding:12px; }
    .lp-dashboard-header { flex-direction:column; padding:20px; }
    .lp-dashboard-header h2 { font-size:31px; }
    .lp-health-strip,.lp-kpi-grid { grid-template-columns:1fr; padding-left:12px; padding-right:12px; }
    .lp-dashboard-grid { padding:12px; }
    .lp-summary-strip { grid-template-columns:1fr; }
    .lp-page-toolbar { align-items:flex-start; flex-direction:column; }
    .lp-page-toolbar .primary-button,.lp-page-toolbar .download-button { width:100%; }
}


/* LineProof v15 - photographic headers, report score and route interpretation */
.main-content:not(.main-content--overview) .page-heading {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    margin: -28px -30px 26px;
    padding: 38px 34px 30px;
    border: 0;
    background:
        linear-gradient(90deg,rgba(4,25,52,.93),rgba(4,43,83,.66)),
        url('/assets/network-arcs.svg?v=2') center 15%/cover no-repeat,
        url('/assets/hero-city.jpg?v=3') center 47%/cover no-repeat;
}
.main-content:not(.main-content--overview) .page-heading::after {
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:1px;
    background:rgb(255 255 255 / 22%);
}
.main-content:not(.main-content--overview) .page-heading h1 {
    position:relative;
    z-index:1;
    color:#fff;
    font-size:36px;
    text-shadow:0 2px 12px rgb(0 12 32 / 42%);
}
.main-content:not(.main-content--overview) .page-heading p {
    position:relative;
    z-index:1;
    max-width:820px;
    color:#d7e9f6;
    font-size:15px;
    text-shadow:0 2px 10px rgb(0 12 32 / 38%);
}
.sidebar::after {
    left:0;
    right:0;
    bottom:0;
    height:43%;
    opacity:.88;
    transform:none;
    background:
        linear-gradient(180deg,rgba(7,29,62,1) 0%,rgba(7,29,62,.22) 34%,rgba(7,29,62,.1) 100%),
        url('/assets/sidebar-fibre.jpg') center bottom/cover no-repeat;
    filter:saturate(1.25) brightness(.78) contrast(1.08);
    mix-blend-mode:normal;
}
.sidebar::before {
    background:linear-gradient(180deg,rgba(4,20,45,.02) 0%,rgba(4,20,45,.1) 55%,rgba(4,20,45,.32) 100%);
}

.lp-report-actions {
    display:grid;
    gap:12px;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:stretch;
}
.lp-report-actions .lp-report-filter { margin:0; }
.lp-email-report-form {
    display:grid;
    align-content:center;
    justify-items:stretch;
    min-width:220px;
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    box-shadow:var(--lp-shadow);
}
.lp-email-report-form .download-button {
    margin:0;
    cursor:pointer;
    background:#0d7fd1;
    border-color:#0d7fd1;
    color:#fff;
}
.lp-email-report-form small {
    margin-top:7px;
    color:#6d7f93;
    font-size:10px;
    text-align:center;
}
.lp-report-summary { align-items:center; }
.lp-report-score {
    display:grid;
    min-width:150px;
    grid-template-columns:auto auto;
    align-items:baseline;
    justify-content:end;
    column-gap:4px;
    text-align:right;
}
.lp-report-score strong {
    color:#0e3d6a;
    font-size:42px;
    line-height:1;
}
.lp-report-score > span { color:#6b7e94; font-size:17px; font-weight:700; }
.lp-report-score small {
    grid-column:1 / -1;
    margin-top:5px;
    color:#60708d;
    font-size:11px;
}
.lp-report-chart-card { margin-top:18px; }
.lp-report-chart-card .lp-card-heading p {
    margin:5px 0 0;
    color:#60708d;
    font-size:12px;
}
.lp-report-chart {
    width:100%;
    min-height:285px;
    margin-top:8px;
}
.lp-report-chart .axis { stroke:#8294a8; stroke-width:1; }
.lp-report-chart .package { stroke:#667f99; stroke-width:1.5; stroke-dasharray:6 5; }
.lp-report-chart .threshold { stroke:#d99a25; stroke-width:1.5; stroke-dasharray:5 5; }
.lp-report-chart .download-line { fill:none; stroke:#1688e8; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.lp-report-chart .upload-line { fill:none; stroke:#16a875; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.lp-report-chart text { fill:#60708d; font-size:12px; font-family:"Segoe UI",Arial,sans-serif; }
.lp-report-chart .package-label { fill:#52667c; }
.lp-report-chart .threshold-label { fill:#a66b12; }
.lp-score-method {
    margin-top:4px;
    padding:12px 14px;
    border-radius:8px;
    background:#f4f7fa;
    color:#60708d;
    font-size:12px;
    line-height:1.5;
}
.lp-score-method strong { color:#17365d; }

.lp-trace-analysis { margin-top:18px; }
.lp-analysis-note { color:#708197; font-size:11px; }
.lp-analysis-grid {
    display:grid;
    gap:12px;
    margin-top:12px;
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.lp-analysis-card {
    padding:17px 18px;
    border:1px solid #dce6ef;
    border-left:4px solid #7f93aa;
    border-radius:9px;
    background:#fff;
    box-shadow:var(--lp-shadow);
}
.lp-analysis-card--local { border-left-color:#df4d57; }
.lp-analysis-card--upstream { border-left-color:#d99a25; }
.lp-analysis-card--loss { border-left-color:#cf6c41; }
.lp-analysis-card--route { border-left-color:#735fc7; }
.lp-analysis-card--clear { border-left-color:#16a875; }
.lp-analysis-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.lp-analysis-card h3 { margin:3px 0 0; color:#17365d; font-size:17px; }
.lp-analysis-card > p { margin:10px 0 0; color:#60708d; font-size:12px; line-height:1.5; }
.lp-analysis-metrics {
    display:grid;
    gap:8px;
    margin-top:13px;
    grid-template-columns:repeat(4,minmax(0,1fr));
}
.lp-analysis-metrics span {
    padding:9px 10px;
    border-radius:7px;
    background:#f5f8fb;
    color:#274b70;
    font-size:11px;
}
.lp-analysis-metrics b {
    display:block;
    margin-bottom:3px;
    color:#728399;
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.4px;
}
.lp-trace-guidance { margin-top:12px; font-size:12px; }

@media(max-width:980px){
    .lp-report-actions { grid-template-columns:1fr; }
    .lp-email-report-form { min-width:0; }
    .lp-analysis-grid { grid-template-columns:1fr; }
    .lp-analysis-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:860px){
    .main-content:not(.main-content--overview) .page-heading {
        margin:-18px -18px 22px;
        padding:30px 22px 24px;
    }
}
@media(max-width:620px){
    .main-content:not(.main-content--overview) .page-heading {
        min-height:145px;
        margin:-12px -12px 18px;
        padding:26px 18px 22px;
    }
    .main-content:not(.main-content--overview) .page-heading h1 { font-size:31px; }
    .lp-report-summary { flex-direction:column; align-items:flex-start; }
    .lp-report-score { justify-content:start; text-align:left; }
    .lp-analysis-metrics { grid-template-columns:1fr; }
}


/* LineProof v16 - raised photographic headers and PDF-report controls */
.lp-dashboard-header {
    min-height: 228px;
    padding: 42px 30px 34px;
    align-items:flex-start;
    background:
        linear-gradient(90deg,rgba(5,30,61,.94),rgba(5,43,83,.70)),
        url('/assets/hero-city.jpg?v=3') center 27%/cover no-repeat;
}
.lp-dashboard-header > div:first-child { padding-top:6px; }
.main-content:not(.main-content--overview) .page-heading {
    min-height: 228px;
    padding: 52px 38px 38px;
    background:
        linear-gradient(90deg,rgba(4,25,52,.91),rgba(4,43,83,.60)),
        url('/assets/network-arcs.svg?v=2') center 7%/cover no-repeat,
        url('/assets/hero-city.jpg?v=3') center 27%/cover no-repeat;
}
.main-content:not(.main-content--overview) .page-heading h1 {
    margin-top:10px;
    font-size:38px;
}
.main-content:not(.main-content--overview) .page-heading p {
    max-width:860px;
    margin-top:8px;
}
.lp-email-report-form .download-button {
    min-height:48px;
    font-size:14px;
    font-weight:700;
}
.lp-email-report-form small {
    max-width:245px;
    line-height:1.35;
}
@media(max-width:860px){
    .lp-dashboard-header { min-height:195px; padding:32px 22px 28px; background-position:center 27%; }
    .main-content:not(.main-content--overview) .page-heading {
        min-height:190px;
        padding:38px 24px 28px;
        background-position:center 7%, center 27%;
    }
}
@media(max-width:620px){
    .lp-dashboard-header { min-height:178px; padding:26px 18px 24px; }
    .main-content:not(.main-content--overview) .page-heading {
        min-height:178px;
        padding:30px 18px 24px;
    }
}
