:root{
  --slp-navy:#092840;
  --slp-navy-2:#0d3855;
  --slp-navy-3:#123e5d;
  --slp-teal:#10aaa1;
  --slp-teal-dark:#078c84;
  --slp-teal-soft:#e7f8f6;
  --slp-ink:#10273c;
  --slp-muted:#6b8194;
  --slp-muted-2:#8ba0ae;
  --slp-line:#dce6ec;
  --slp-line-2:#e8eff3;
  --slp-soft:#f5f8fa;
  --slp-soft-2:#f9fbfc;
  --slp-white:#fff;
  --slp-green:#188b68;
  --slp-red:#b84c4c;
  --slp-amber:#a96b0b;
  --slp-shadow:0 18px 46px rgba(10,38,58,.07);
}
*{box-sizing:border-box}
body.slp-portal-page{margin:0;background:var(--slp-soft)}
.slp-app{min-height:100vh;display:grid;grid-template-columns:248px 1fr;background:var(--slp-soft);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--slp-ink);font-size:14px;line-height:1.45}
.slp-app button,.slp-app input,.slp-app select,.slp-app textarea{font:inherit}
.slp-app button{cursor:pointer}
.slp-app svg{display:block;width:20px;height:20px}

/* sidebar */
.slp-app-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#0a2d47 0%,#08243a 100%);color:#dbe9f1;padding:28px 14px 20px;display:flex;flex-direction:column;box-shadow:10px 0 35px rgba(6,31,49,.08);z-index:20}
.slp-app-brand{display:flex;align-items:center;gap:11px;padding:3px 10px 32px;color:#fff}.slp-app-brand>span:last-child{min-width:0}.slp-app-brand strong{display:block;font-size:14px;line-height:1.1;letter-spacing:-.01em}.slp-app-brand em{display:block;color:#69ddd4;font-style:normal;font-size:11px;font-weight:800;margin-top:3px}.slp-app-mark{display:flex;gap:2px;transform:skew(-18deg);height:29px}.slp-app-mark i{display:block;width:6px;border-radius:2px;background:linear-gradient(180deg,#f0ffff,#0eb6aa)}
.slp-app-sidebar nav{display:flex;flex-direction:column;gap:5px}.slp-app-sidebar nav button{width:100%;border:0;background:transparent;color:#d0e0e9;padding:11px 12px;border-radius:10px;text-align:left;display:flex;align-items:center;gap:11px;font-weight:630;font-size:13px;transition:.18s ease}.slp-app-sidebar nav button:hover{background:rgba(255,255,255,.055);color:#fff}.slp-app-sidebar nav button.is-active{background:linear-gradient(90deg,rgba(18,174,163,.29),rgba(41,113,150,.24));color:#fff;box-shadow:inset 3px 0 0 #18c4b8}.slp-nav-icon{width:23px;height:23px;display:grid;place-items:center;color:#f4fbff}.slp-nav-icon svg{width:18px;height:18px}.slp-nav-label{line-height:1}
.slp-app-sidebar__bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.09);padding:17px 8px 0}.slp-user-chip{display:flex;align-items:center;gap:10px}.slp-user-chip>b{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:#275b78;color:#fff;font-size:12px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.slp-user-chip span{font-size:12px;color:#fff;line-height:1.25}.slp-user-chip small{display:block;color:#8eabbc;font-size:10px;margin-top:3px}.slp-partner-role{margin:10px 0 0 49px;color:#86a6b9;font-size:9px}.slp-logout-link{display:flex;align-items:center;gap:8px;margin:14px 0 0 47px;color:#91aebe;font-size:10px;text-decoration:none}.slp-logout-link svg{width:14px;height:14px}.slp-logout-link:hover{color:#fff}

/* layout + header */
.slp-app-main{min-width:0;padding:0 34px 48px}.slp-app-header{height:74px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe8ed;margin-bottom:27px}.slp-header-context{display:flex;flex-direction:column}.slp-header-context span{font-size:9px;letter-spacing:.13em;color:#8297a6;font-weight:850}.slp-header-context strong{font-size:13px;margin-top:3px}.slp-header-right{display:flex;align-items:center;gap:14px}.slp-support-chip{display:flex;align-items:center;gap:9px;color:#607a8c;padding:8px 12px;border:1px solid #dde7ec;border-radius:11px;background:#fff}.slp-support-chip svg{width:17px;height:17px;color:var(--slp-teal-dark)}.slp-support-chip span{display:flex;flex-direction:column}.slp-support-chip small{font-size:8px;color:#8a9eac}.slp-support-chip strong{font-size:10px;color:#355065}.slp-header-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e6f2f6;color:#1e5875;font-size:11px;font-weight:850}
.slp-view{display:none;max-width:1320px;margin:0 auto}.slp-view.is-active{display:block}.slp-page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:25px}.slp-page-title small,.slp-card-head small{display:block;font-size:9px;letter-spacing:.13em;color:#7d92a2;font-weight:850}.slp-page-title h1{font-size:34px;line-height:1.06;margin:4px 0 7px;letter-spacing:-.035em}.slp-page-title p,.slp-card-head p{margin:0;color:var(--slp-muted);font-size:13px}.slp-page-title--offer{margin-bottom:20px}.slp-page-title--offer h1{font-size:31px;margin:0 0 4px}.slp-page-title--offer p{font-size:14px}
.slp-primary-action,.slp-secondary-action,.slp-link-button,.slp-copy-link,.slp-draft-button{border:0;border-radius:10px;padding:11px 16px;font-weight:800}.slp-primary-action{background:var(--slp-navy);color:#fff;box-shadow:0 8px 20px rgba(9,40,64,.12)}.slp-primary-action:hover{background:#0c334f}.slp-secondary-action{background:#e9f0f4;color:var(--slp-navy)}.slp-link-button,.slp-copy-link,.slp-draft-button{background:transparent;color:#0a847b;padding:7px 8px}.slp-draft-button{width:100%;margin-top:8px;color:#597183}.slp-draft-button:hover{background:#f3f7f9;color:#16384e}
.slp-panel-card{background:#fff;border:1px solid var(--slp-line);border-radius:17px;padding:22px;box-shadow:var(--slp-shadow)}.slp-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.slp-card-head h2{font-size:20px;margin:3px 0 2px;letter-spacing:-.02em}.slp-table-card{padding:20px}

/* dashboard */
.slp-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.slp-stat-grid article{position:relative;background:#fff;border:1px solid var(--slp-line);border-radius:16px;padding:18px 18px 17px;box-shadow:0 10px 28px rgba(18,52,72,.035)}.slp-stat-icon{position:absolute;right:15px;top:15px;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e8f7f5;color:#0b8b82}.slp-stat-icon svg{width:17px;height:17px}.slp-stat-grid span{font-size:11px;color:#647b8d}.slp-stat-grid strong{display:block;font-size:28px;margin:8px 0 2px;letter-spacing:-.035em}.slp-stat-grid small{font-size:10px;color:#8295a3}

/* new offer */
.slp-offer-form{display:block}.slp-offer-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.slp-offer-builder{padding:26px}.slp-builder-title h2{font-size:22px;line-height:1.15;margin:0 0 20px;letter-spacing:-.025em}.slp-category-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:28px}.slp-category-tabs button{min-height:105px;border:1px solid #dce6eb;background:linear-gradient(180deg,#fff,#f8fafb);color:#546d7e;border-radius:11px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;font-size:11px;font-weight:700;line-height:1.25;transition:.18s ease}.slp-category-tabs button:hover{border-color:#a8ddd8;background:#f4fbfa}.slp-category-tabs button.is-active{border-color:#19b7ad;background:linear-gradient(180deg,#f0fcfa,#e9f8f6);color:#078b82;box-shadow:inset 0 0 0 1px rgba(25,183,173,.1)}.slp-category-icon{height:28px;display:grid;place-items:center}.slp-category-icon svg{width:26px;height:26px}.slp-builder-row{display:grid;gap:22px;margin-top:20px}.slp-builder-row--price{grid-template-columns:minmax(0,1.8fr) minmax(150px,.7fr);align-items:end}.slp-builder-row--details{grid-template-columns:1.2fr .8fr;align-items:end}.slp-field-block>label,.slp-finance-label label{display:block;font-size:12px;font-weight:800;color:#193246;margin-bottom:9px}.slp-field-block select,.slp-field-block input[type=number]{width:100%;height:44px;border:1px solid #d5e0e6;border-radius:9px;background:#fff;color:#153046;padding:0 12px;outline:none}.slp-field-block select:focus,.slp-field-block input[type=number]:focus{border-color:#52c9c0;box-shadow:0 0 0 3px rgba(16,170,161,.08)}.slp-slider-with-value{display:grid;grid-template-columns:minmax(0,1fr) 138px;gap:14px;align-items:center}.slp-number-box{height:44px;border:1px solid #d5e0e6;border-radius:9px;background:#fff;display:flex;align-items:center;overflow:hidden}.slp-number-box input{border:0!important;box-shadow:none!important;height:42px!important;padding:0 4px 0 12px!important;font-weight:800;text-align:right;min-width:0}.slp-number-box span{color:#8094a2;font-size:11px;padding-right:10px}.slp-number-box input::-webkit-outer-spin-button,.slp-number-box input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.slp-number-box input[type=number]{-moz-appearance:textfield}.slp-slider-stack{min-width:0}.slp-slider-stack input[type=range]{--range-pct:20%;width:100%;height:18px;margin:0;appearance:none;background:transparent;outline:none;cursor:pointer}.slp-slider-stack input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:99px;background:linear-gradient(to right,var(--slp-teal) 0,var(--slp-teal) var(--range-pct),#dfe7ec var(--range-pct),#dfe7ec 100%)}.slp-slider-stack input[type=range]::-moz-range-track{height:5px;border-radius:99px;background:#dfe7ec}.slp-slider-stack input[type=range]::-moz-range-progress{height:5px;border-radius:99px;background:var(--slp-teal)}.slp-slider-stack input[type=range]::-webkit-slider-thumb{appearance:none;width:21px;height:21px;border-radius:50%;background:#0ca097;margin-top:-8px;border:0;box-shadow:0 3px 8px rgba(8,127,119,.25)}.slp-slider-stack input[type=range]::-moz-range-thumb{width:21px;height:21px;border-radius:50%;background:#0ca097;border:0;box-shadow:0 3px 8px rgba(8,127,119,.25)}.slp-slider-scale{display:flex;justify-content:space-between;color:#879aa8;font-size:10px;margin-top:2px}.slp-segmented{display:grid;grid-template-columns:1fr 1fr;height:44px;border:1px solid #d5e0e6;border-radius:9px;overflow:hidden;background:#f6f9fa}.slp-segmented button{border:0;background:transparent;color:#60788a;font-weight:700}.slp-segmented button.is-active{background:#fff;color:#0a8b82;box-shadow:0 1px 7px rgba(18,52,72,.08)}.slp-finance-divider{display:flex;align-items:center;gap:12px;margin:30px 0 2px;color:#193246;font-weight:820;font-size:13px}.slp-finance-divider:after{content:"";height:1px;background:#e9eff2;flex:1}.slp-finance-row{display:grid;grid-template-columns:190px minmax(0,1fr) 140px;gap:18px;align-items:center;padding:16px 0;border-top:1px solid #edf2f4}.slp-finance-label small{display:block;color:#8296a4;font-size:10px;margin-top:3px}.slp-range-value{justify-self:end;min-width:132px;min-height:44px;border:1px solid #d7e2e7;border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;text-align:center}.slp-range-value strong{font-size:13px}.slp-range-value span{font-size:10px;color:#7d91a0}.slp-commission-panel{position:sticky;top:90px;padding:25px}.slp-commission-head{display:flex;align-items:center;gap:8px}.slp-commission-head h2{font-size:22px;margin:0;letter-spacing:-.025em}.slp-info-dot{width:20px;height:20px;border:1px solid #9cb0be;border-radius:50%;display:grid;place-items:center;color:#678091;font-size:11px;font-weight:850}.slp-commission-panel>p{color:#657c8e;font-size:13px;margin:8px 0 18px}.slp-commission-mode{height:46px;border:1px solid #dce6eb;border-radius:10px;background:#f5f8fa;display:grid;grid-template-columns:1fr}.slp-commission-mode span{display:grid;place-items:center;background:linear-gradient(180deg,#0eb6ac,#09978f);color:#fff;border-radius:9px;font-weight:780;font-size:13px}.slp-commission-value{display:flex;justify-content:flex-end;margin:18px 0 -4px}.slp-commission-value strong{display:grid;place-items:center;min-width:94px;height:44px;border:1px solid #d8e2e7;border-radius:9px;background:#fff;font-size:18px}.slp-slider-stack--commission{margin-top:0}.slp-commission-total{margin-top:18px;border-radius:10px;background:linear-gradient(135deg,#effbf9,#e7f7f5);padding:18px}.slp-commission-total small{display:block;color:#4b687a;font-size:12px}.slp-commission-total strong{display:block;color:#06938a;font-size:34px;line-height:1;margin:8px 0 6px;letter-spacing:-.04em}.slp-commission-total span{display:block;color:#365267;font-size:12px}.slp-commission-total b{font-weight:800}.slp-commission-limits{display:grid;gap:4px;color:#7b8f9e;font-size:10px;margin:14px 0 20px}.slp-compare-button{width:100%;min-height:52px;font-size:14px;display:flex;align-items:center;justify-content:space-between;padding-inline:18px}.slp-fixed-commission{display:grid;gap:7px;margin:16px 0 22px;padding:18px;border-radius:12px;background:#e9f8f6;border:1px solid #bfe8e4}.slp-fixed-commission small{color:#577384}.slp-fixed-commission strong{font-size:30px;color:#087f77}.slp-fixed-commission span{font-size:17px;font-weight:800}.slp-client-details{margin-top:16px;background:#fff;border:1px solid var(--slp-line);border-radius:15px;box-shadow:0 10px 28px rgba(18,52,72,.035);overflow:hidden}.slp-client-details summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:17px 20px;cursor:pointer}.slp-client-details summary::-webkit-details-marker{display:none}.slp-client-details summary span:first-child{display:flex;flex-direction:column}.slp-client-details summary strong{font-size:14px}.slp-client-details summary small{color:#8093a1;font-size:10px;margin-top:2px}.slp-details-plus{font-size:22px;color:#718797;transition:.2s}.slp-client-details[open] .slp-details-plus{transform:rotate(45deg)}.slp-client-details__body{border-top:1px solid #edf2f4;padding:0 20px 20px}.slp-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:16px}.slp-form-grid label{position:relative;font-size:11px;font-weight:720;color:#415c70}.slp-form-grid input,.slp-form-grid select{width:100%;margin-top:7px;border:1px solid #d7e1e7;border-radius:8px;padding:12px;background:#fff;color:#173147;outline:none}.slp-form-grid input:focus,.slp-form-grid select:focus{border-color:#52c9c0;box-shadow:0 0 0 3px rgba(16,170,161,.08)}.slp-inline-message{display:none;margin-top:12px;padding:11px 13px;border-radius:9px;font-size:12px}.slp-inline-message.is-error{display:block;background:#fff0f0;color:#983b3b}.slp-inline-message.is-success{display:block;background:#e7f8f5;color:#08766e}

/* comparison results */
.slp-results-card{margin-top:18px}.slp-result-list{display:grid;gap:9px}.slp-result{display:grid;grid-template-columns:126px minmax(155px,1.3fr) repeat(4,minmax(95px,.7fr));gap:14px;align-items:center;border:1px solid #e1e9ed;border-radius:12px;padding:14px;background:#fff}.slp-result:hover{border-color:#c9dce4;box-shadow:0 8px 22px rgba(17,50,68,.045)}.slp-result-check{display:flex;align-items:center;gap:7px;font-size:9px;font-weight:800;color:#466275}.slp-result-check input{accent-color:var(--slp-teal)}.slp-result__provider strong{display:block;font-size:13px}.slp-result__provider-logo{height:24px;max-width:92px;object-fit:contain;object-position:left center;margin-bottom:5px}.slp-result__badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.slp-result__badges span{font-size:8px;background:#e7f7f4;color:#087a72;padding:3px 6px;border-radius:999px;font-weight:800}.slp-result small{display:block;color:#8093a0;font-size:8px}.slp-result b{font-size:12px}.slp-offer-publish{margin-top:20px;padding-top:20px;border-top:1px solid #e7edef}.slp-offer-publish .slp-primary-action{margin-top:14px}.slp-published-box{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:13px;border-radius:10px;background:#e8f8f6;color:#116e67}.slp-published-box a,.slp-published-box button{font:inherit;font-size:11px;border:0;background:#fff;color:#0b2740;border-radius:7px;padding:8px 10px;text-decoration:none;cursor:pointer}

/* tables */
.slp-table-wrap{overflow:auto}.slp-data-table{width:100%;border-collapse:collapse;min-width:820px}.slp-data-table th{font-size:9px;color:#7890a0;text-align:left;padding:11px 10px;border-bottom:1px solid #e7edef;letter-spacing:.03em}.slp-data-table td{font-size:11px;padding:13px 10px;border-bottom:1px solid #eef2f4}.slp-data-table tbody tr:hover{background:#fbfdfe}.slp-data-table td small{display:block;color:#8294a0;font-size:9px;margin-top:2px}.slp-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#edf3f6;color:#4b677a;font-size:9px;font-weight:800}.slp-status--sent,.slp-status--application_submitted,.slp-status--submitted{background:#e9f4ff;color:#276390}.slp-status--approved,.slp-status--signed,.slp-status--paid{background:#e7f7ef;color:#24724f}.slp-status--lost{background:#fff0f0;color:#9a4343}.slp-status--expected{background:#fff6df;color:#8d650e}.slp-status--selected{background:#e8f8f6;color:#08766e}.slp-table-action{display:inline-block;color:#0b7f77;text-decoration:none;font-weight:800;font-size:10px;margin-right:3px}.slp-empty{padding:34px;text-align:center;color:#7a8e9b;font-size:12px;background:#fbfdfe;border-radius:11px;border:1px dashed #dce6eb}

/* login / gate / generic forms used outside the portal */
.slp-portal-gate{max-width:520px;margin:70px auto;padding:28px;background:#fff;border:1px solid var(--slp-line);border-radius:15px}.slp-portal-button{display:inline-block;background:var(--slp-navy);color:#fff;text-decoration:none;padding:11px 16px;border-radius:8px;font-weight:800}.slp-login-card{max-width:480px;margin:30px auto;padding:24px;background:#fff;border:1px solid var(--slp-line);border-radius:15px}.slp-login-card form p{margin:0 0 14px}.slp-login-card input[type=text],.slp-login-card input[type=password]{width:100%;padding:12px;border:1px solid #d6e2e8;border-radius:8px}.slp-login-card input[type=submit]{background:var(--slp-navy);color:#fff;border:0;border-radius:8px;padding:12px 18px;font-weight:800}.slp-login-help{color:#63798c;font-size:13px}

/* public offer helpers kept compatible */
.slp-client-offer .badges span{display:inline-block;background:#e5f8f5;color:#08766e;border-radius:99px;padding:4px 7px;font-size:10px;margin:3px 4px 0 0}

@media(max-width:1180px){.slp-app{grid-template-columns:210px 1fr}.slp-offer-workspace{grid-template-columns:1fr}.slp-commission-panel{position:static}.slp-category-tabs{grid-template-columns:repeat(5,1fr)}.slp-result{grid-template-columns:1fr 1fr 1fr}.slp-result-check{grid-column:auto}.slp-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.slp-category-tabs{grid-template-columns:repeat(3,1fr)}.slp-finance-row{grid-template-columns:150px 1fr 130px}.slp-builder-row--price,.slp-builder-row--details{grid-template-columns:1fr}.slp-support-chip{display:none}}
@media(max-width:760px){.slp-app{display:block}.slp-app-sidebar{position:relative;height:auto;padding:11px 10px}.slp-app-brand{padding:5px 7px 10px}.slp-app-sidebar nav{display:grid;grid-template-columns:repeat(5,1fr);overflow:auto}.slp-app-sidebar nav button{font-size:0;justify-content:center;padding:10px 6px}.slp-app-sidebar nav button.is-active{box-shadow:inset 0 -3px 0 #18c4b8}.slp-nav-label{display:none}.slp-nav-icon{width:auto}.slp-app-sidebar__bottom{display:none}.slp-app-main{padding:0 12px 34px}.slp-app-header{height:58px;margin-bottom:19px}.slp-header-context span{display:none}.slp-page-title{align-items:stretch;flex-direction:column}.slp-page-title h1{font-size:28px}.slp-stat-grid{grid-template-columns:1fr 1fr}.slp-offer-builder,.slp-commission-panel{padding:18px}.slp-builder-title h2{font-size:19px}.slp-category-tabs{grid-template-columns:repeat(2,1fr)}.slp-category-tabs button{min-height:90px}.slp-slider-with-value{grid-template-columns:1fr}.slp-finance-row{grid-template-columns:1fr;gap:8px}.slp-range-value{justify-self:start}.slp-form-grid{grid-template-columns:1fr}.slp-result{grid-template-columns:1fr 1fr}.slp-result-check{grid-column:1/-1}.slp-card-head{flex-direction:column}.slp-stat-grid article{padding:14px}.slp-stat-grid strong{font-size:22px}}
@media(max-width:480px){.slp-stat-grid{grid-template-columns:1fr}.slp-category-tabs{grid-template-columns:1fr 1fr}.slp-header-avatar{display:none}.slp-result{grid-template-columns:1fr}.slp-result-check{grid-column:auto}}
