/* SalesPilot follows the Mastiff Classic theme, scoped to the module. */
.msp {
    --msp-ink: var(--color-fg, #303336);
    --msp-accent: var(--color-primary, #195d7c);
    --msp-accent-dark: var(--color-primary-darker, #12445b);
    --msp-muted: var(--color-ink-muted, #62676b);
    --msp-line: var(--mc-line, #dce0e2);
    --msp-soft: #f6f6f6;
    color: var(--msp-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}
.msp * { box-sizing: border-box; }
.msp-start { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 28px; }
.msp-start a { padding: 18px; border: 1px solid var(--msp-line); background: var(--msp-soft); }
.msp-equipment { padding: 18px; border: 1px solid var(--msp-line); margin: 12px 0 24px; }
.msp-equipment summary { cursor: pointer; font-weight: 500; color: var(--msp-accent); }
.msp-equipment p { margin-top: 14px; }
.msp-offer .msp-secondary { width: 100%; margin-bottom: 14px; }
.msp-connections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0; list-style: none; margin: 20px 0; }
.msp-connections li { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--msp-soft); min-width: 0; overflow-wrap: anywhere; }
.msp-wire { color: var(--msp-accent); border-left: 2px solid var(--msp-accent); padding: 8px 12px; }
.msp-config-items article { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--msp-line); }
.msp-config-items img { width: 100px; height: 90px; object-fit: contain; }
.msp-devices { margin-bottom: 20px; }
.msp-devices dt { font-size: 13px; color: var(--msp-muted); }
.msp-devices dd { margin: 0 0 12px; font-weight: 500; overflow-wrap: anywhere; }
.msp-preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.msp-knowledge { margin: 0 0 28px; padding: 24px; background: var(--msp-soft); }
.msp-finder { width: 100%; max-width: none; margin: 0; padding: 0; }
.msp h1 { max-width: 900px; margin: 0 0 22px; font-size: 42px; font-weight: 500; line-height: 1.18; letter-spacing: -.6px; }
.msp h2 { margin: 0 0 16px; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.msp h3 { margin: 8px 0 12px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.msp p { margin: 0 0 14px; }
.msp a { color: var(--msp-accent); text-underline-offset: 4px; }
.msp a:hover { text-decoration: underline; }
.msp .msp-eyebrow { margin: 0 0 16px; color: var(--msp-accent); font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.msp-lead { max-width: 800px; color: var(--msp-muted); font-size: 16px; }
.msp-hero { padding: 8px 0 28px; }
.msp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; border-block: 1px solid var(--msp-line); background: var(--msp-soft); list-style: none; }
.msp-steps li { padding: 14px 20px; color: var(--msp-muted); font-size: 14px; }
.msp-steps li + li { border-left: 1px solid var(--msp-line); }
.msp-panel { margin-bottom: 28px; padding: 28px; border: 1px solid var(--msp-line); border-radius: 0; background: #fff; }
.msp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 24px 0; }
.msp label { display: block; min-width: 0; font-size: 14px; font-weight: 500; }
.msp input:not([type=checkbox]):not([type=hidden]), .msp select, .msp textarea {
    display: block; width: 100%; max-width: 100%; min-height: 44px;
    margin: 7px 0 14px; padding: 10px 12px; border: 1px solid #92979a;
    border-radius: 0; background-color: #fff; color: var(--msp-ink);
    font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.5;
    box-shadow: none;
}
.msp select { padding-right: 36px; }
.msp textarea { resize: vertical; }
.msp :where(input, select, textarea, button, a):focus-visible { outline: 3px solid #007ea8; outline-offset: 3px; }
.msp .msp-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 14px; font-weight: 400; }
.msp-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 0; accent-color: var(--msp-accent); color: var(--msp-accent); }
.msp-check span { min-width: 0; }
.msp-button, .msp-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 1px solid var(--msp-accent); border-radius: 0; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; box-shadow: none; }
.msp .msp-button { background: var(--msp-accent); color: #fff; text-decoration: none; }
.msp .msp-button:hover { border-color: var(--msp-accent-dark); background: var(--msp-accent-dark); }
.msp .msp-secondary { background: #fff; color: var(--msp-accent); text-decoration: none; }
.msp .msp-secondary:hover { background: #eef5f8; }
.msp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.msp-tips { margin: 24px 0 0; padding-left: 22px; color: var(--msp-muted); font-size: 14px; }
.msp-port-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.msp-port-images figure { min-width: 0; margin: 12px 0; padding: 16px; border: 1px solid var(--msp-line); border-radius: 0; background: #fff; }
.msp-port-images img { width: 100%; height: auto; min-height: 90px; object-fit: contain; }
.msp figcaption, .msp-small { color: var(--msp-muted); font-size: 13px; overflow-wrap: anywhere; }
.msp figcaption { margin-top: 8px; }
.msp-notes { margin: 24px 0 0; padding: 18px 20px; border-left: 2px solid var(--msp-accent); background: var(--msp-soft); }
.msp-notes p:last-child { margin: 0; }
.msp .msp-confirmed { margin-top: 18px; color: var(--msp-accent); font-weight: 500; }
.msp-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 32px; }
.msp-offer { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 20px; border: 0; border-radius: 0; background: var(--msp-soft); }
.msp-offer > a { color: var(--msp-ink); }
.msp-offer h3 { margin: 16px 0 12px; font-size: 16px; font-weight: 500; }
.msp-offer img { width: 100%; height: 180px; object-fit: contain; background: #fff; }
.msp-spec { font-size: 14px; font-weight: 500; }
.msp-connection { padding-top: 14px; border-top: 1px solid var(--msp-line); color: var(--msp-muted); font-size: 14px; }
.msp .msp-price { margin-top: auto; padding-top: 8px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.msp-price small { display: block; margin-top: 4px; color: var(--msp-muted); font-size: 13px; font-weight: 400; }
.msp-offer .msp-button { width: 100%; margin: 8px 0 14px; }
.msp-inquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; border: 0; background: var(--msp-soft); }
.msp .msp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msp-related { padding: 18px 0 0; }
.msp-related > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.msp-related a { padding: 12px 0; border-bottom: 1px solid var(--msp-line); font-size: 14px; }
.msp-entry { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; max-width: none; margin: 0 0 24px; padding: 28px; border: 0; border-radius: 0; background: var(--msp-soft); }
.msp-entry > div:first-child { max-width: 720px; min-width: 0; }
.msp-entry p:last-child { margin-bottom: 0; color: var(--msp-muted); }
.msp-entry-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 260px; }
.msp-entry-links > a:not(.msp-button) { font-size: 14px; }
@media (max-width: 1050px) {
    .msp h1 { font-size: 36px; }
    .msp-entry { gap: 24px; }
}
@media (max-width: 767px) {
    .msp-start, .msp-connections { grid-template-columns: minmax(0,1fr); }
    .msp-config-items article { grid-template-columns: 70px minmax(0,1fr); gap: 14px; }
    .msp-config-items img { width: 70px; height: 70px; }
    .msp-config-items article > strong { grid-column: 2; }
    .msp h1 { font-size: 34px; }
    .msp h2 { font-size: 22px; }
    .msp-hero { padding-top: 0; }
    .msp-panel, .msp-entry { padding: 24px; }
    .msp-offers, .msp-inquiry, .msp-port-images { grid-template-columns: minmax(0, 1fr); }
    .msp-offer img { height: 200px; }
    .msp-inquiry { gap: 24px; }
    .msp-entry { flex-direction: column; align-items: stretch; }
    .msp-entry-links { min-width: 0; }
    .msp-port-images img { min-height: 0; }
    .msp input:not([type=checkbox]):not([type=hidden]), .msp select, .msp textarea { font-size: 16px; }
}
@media (max-width: 540px) {
    .msp-panel, .msp-entry { padding: 20px; }
    .msp-form-grid, .msp-related > div, .msp-steps { grid-template-columns: minmax(0, 1fr); }
    .msp-form-grid { gap: 0; }
    .msp-steps li { padding: 9px 16px; }
    .msp-steps li + li { border-left: 0; border-top: 1px solid var(--msp-line); }
    .msp-actions { flex-direction: column; }
    .msp-button, .msp-secondary { width: 100%; }
}
@media (max-width: 380px) {
    .msp h1 { font-size: 32px; }
}

.msp-context-link { margin: 18px 0; font-size: 14px; }

.msp-share-panel { border: 1px solid var(--msp-line); padding: 18px 24px; margin-bottom: 28px; }
.msp-share-panel summary { color: var(--msp-accent); cursor: pointer; font-weight: 500; }
.msp-share-panel[open] summary { margin-bottom: 16px; }
.msp-port-images img { min-height: 0; max-height: 320px; object-fit: contain; }
.msp input[type=hidden] { display: none; }
.msp-connections li:only-child { grid-column: 1 / -1; }
