/* Scoped styling: does not affect the site's master page. */
#grease1825{font:inherit;color:#0f172a;line-height:1.5}#grease1825 *{box-sizing:border-box}
#grease1825 .gs-wrap{max-width:1280px;margin:0 auto;padding:24px 16px 46px}
#grease1825 .gs-intro{background:#fff;border-bottom:1px solid #e2e8f0;margin-bottom:24px;padding:12px 0 24px;position:relative}
#grease1825 .gs-eyebrow{font-size:12px;letter-spacing:.12em;color:#2563eb;font-weight:700;text-transform:uppercase;margin-bottom:8px}
#grease1825 .gs-intro h1{font-size:clamp(1.7rem,3vw,2.35rem);font-weight:750;line-height:1.2;margin:0 0 12px}
#grease1825 .gs-intro p{margin:0;max-width:850px;color:#475569;font-size:15px}
#grease1825 .gs-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:20px;align-items:start}
#grease1825 .gs-input-side,#grease1825 .gs-output-side{min-width:0;display:grid;gap:18px}
#grease1825 .gs-panel{border:1px solid #e2e8f0;border-radius:13px;padding:21px;background:#fff;min-width:0;box-shadow:0 2px 7px rgba(15,23,42,.025)}
#grease1825 .gs-panel h2{font-size:1.06rem;font-weight:750;margin:0 0 16px;color:#0f172a}
#grease1825 .gs-panel h3{font-size:.94rem;font-weight:720;margin:16px 0 10px}
#grease1825 .gs-field{display:flex;flex-direction:column;gap:5px;margin-bottom:13px;min-width:0;font-size:13px;font-weight:550;color:#334155}
#grease1825 .gs-field input,#grease1825 .gs-field select{width:100%;height:39px;padding:8px 11px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0f172a;font:inherit;font-size:14px;font-weight:450;outline-offset:2px}
#grease1825 .gs-field input:focus,#grease1825 .gs-field select:focus{border-color:#2563eb;outline:2px solid #bfdbfe}
#grease1825 .gs-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#grease1825 .gs-equip-list{display:grid;gap:7px;margin-bottom:12px}
#grease1825 .gs-equip-row .gs-field{margin-bottom:0}
#grease1825 .gs-icon-btn{height:34px;width:29px;display:flex;align-items:center;justify-content:center;border:1px solid #fecaca;border-radius:6px;color:#b91c1c;background:#fff;cursor:pointer;font-size:22px}
#grease1825 .gs-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:1px solid #2563eb;border-radius:8px;background:#2563eb;color:#fff;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none}
#grease1825 .gs-button:disabled{opacity:.42;cursor:not-allowed}
#grease1825 .gs-secondary{background:#fff;color:#1d4ed8;border-color:#93c5fd}
#grease1825 .gs-note{margin:10px 0 0;font-size:12px;color:#64748b;line-height:1.65}
#grease1825 .gs-main-number{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px;margin-bottom:14px;gap:8px}
#grease1825 .gs-main-number span{font-weight:650;color:#475569;font-size:14px}
#grease1825 .gs-main-number strong{color:#1d4ed8;font-size:30px;white-space:nowrap}
#grease1825 .gs-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:15px}
#grease1825 .gs-stats>div{display:grid;gap:3px;padding:12px;background:#eff6ff;border-radius:8px}
#grease1825 .gs-stats span,#grease1825 .gs-result-list span,#grease1825 .gs-stat-line{font-size:13px;color:#475569}
#grease1825 .gs-stats strong{font-size:18px;font-weight:750;color:#0f172a}
#grease1825 .gs-stat-line,#grease1825 .gs-result-list>div{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #f1f5f9}
#grease1825 .gs-stat-line strong,#grease1825 .gs-result-list strong{font-size:14px;color:#0f172a;white-space:nowrap}
#grease1825 .gs-checks>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center;border-bottom:1px solid #f1f5f9;padding:9px 0;font-size:12px}
#grease1825 .gs-pass{color:#15803d}#grease1825 .gs-fail{color:#b91c1c}
#grease1825 .gs-alert{padding:11px;border:1px solid #fecaca;background:#fff7ed;color:#9a3412;border-radius:8px;font-size:13px;margin:0 0 12px}
#grease1825 .gs-alert small{display:block;margin-top:3px}
#grease1825 .gs-svg{width:100%;border:1px solid #e2e8f0;background:#fff;border-radius:8px;overflow:hidden}
#grease1825 #gs-dxf{margin-top:14px;width:100%}#grease1825 .gs-copy{margin-top:15px}
#grease1825 .gs-footer{border-top:1px solid #e2e8f0;margin-top:25px;padding-top:10px}
#grease1825 .gs-footer p{color:#64748b;font-size:12px;line-height:1.7;margin:6px 0}
@media(max-width:980px){#grease1825 .gs-columns{grid-template-columns:1fr}#grease1825 .gs-output-side{grid-row:auto}}

#grease1825 .gs-svg svg{display:block;width:100%;height:auto;background:#fff}

#grease1825 .gs-loading{padding:24px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;color:#475569}

/* Device entry is part of the calculator, with no language controls or breadcrumb. */
#grease1825 .gs-equip-prompt{margin:14px 0 0;padding:15px;background:#f8fafc;border:1px dashed #bfdbfe;border-radius:9px}
#grease1825 .gs-equip-prompt p{font-size:13px;color:#475569;margin:0 0 11px}
#grease1825 .gs-equip-row{padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fafcff}
#grease1825 .gs-equip-main{display:grid;grid-template-columns:minmax(0,1fr) 80px 32px;align-items:end;gap:10px}
#grease1825 .gs-equip-main .gs-field,#grease1825 .gs-equip-details .gs-field{margin-bottom:0}
#grease1825 .gs-equip-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
#grease1825 .gs-eq-metric{background:#fff;padding:7px 9px;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
#grease1825 .gs-eq-metric span{font-size:11px;color:#64748b}
#grease1825 .gs-eq-metric strong{font-size:14px;color:#0f172a;font-weight:700}
#grease1825 .gs-eq-subtotal{background:#eff6ff;border-color:#bfdbfe}
#grease1825 .gs-eq-subtotal strong{color:#1d4ed8}
#grease1825 .gs-equip-total{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:11px 13px;background:#eff6ff;border-radius:8px;font-size:13px}
#grease1825 .gs-equip-total strong{color:#1d4ed8;font-size:17px}
#grease1825 .gs-equip-empty{background:#f8fafc;border-radius:7px;border:1px dashed #cbd5e1;padding:13px;margin:0}
#grease1825 .gs-compare-note{color:#1d4ed8}
@media(max-width:580px){
 #grease1825 .gs-wrap{padding:12px 10px 34px}
 #grease1825 .gs-panel{padding:14px}
 #grease1825 .gs-2col{grid-template-columns:1fr}
 #grease1825 .gs-equip-main{grid-template-columns:minmax(0,1fr) 62px 30px;gap:6px}
 #grease1825 .gs-equip-details{gap:5px}
 #grease1825 .gs-eq-metric{padding:6px}
 #grease1825 .gs-eq-metric strong{font-size:12px}
 #grease1825 .gs-checks>div{grid-template-columns:1fr auto}
 #grease1825 .gs-checks b{grid-column:1/-1;text-align:right}
}

/* v3: visibly independent sizing-method selector */
#grease1825 .gs-method-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#grease1825 .gs-method-btn{border:1px solid #cbd5e1;border-radius:9px;padding:12px 10px;background:#fff;color:#334155;cursor:pointer;text-align:center;font:inherit;font-size:13px;font-weight:650;line-height:1.4;min-height:48px}
#grease1825 .gs-method-btn:hover{border-color:#60a5fa;background:#f8fafc}
#grease1825 .gs-method-btn.gs-selected{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;box-shadow:inset 0 0 0 1px #2563eb}
#grease1825 .gs-method-btn:focus-visible{outline:3px solid #bfdbfe;outline-offset:2px}
#grease1825 .gs-flow-basis{background:#f8fafc;padding-left:9px;padding-right:9px;border-radius:6px}
#grease1825 .gs-flow-basis strong{color:#1d4ed8;text-align:right;white-space:normal}
@media(max-width:410px){#grease1825 .gs-method-choices{grid-template-columns:1fr}}

/* v4: DXF + PDF calculation report export */
#grease1825 .gs-export-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
#grease1825 .gs-export-buttons .gs-button{width:100%;margin:0;white-space:normal;min-height:43px}
@media(max-width:560px){#grease1825 .gs-export-buttons{grid-template-columns:1fr}}

/* v8: avoid illegible SVG labels from automatic downscaling. */
#grease1825 .gs-svg{overflow:hidden;display:flex;justify-content:center;align-items:flex-start;padding:8px;}
#grease1825 #gs-svg svg{display:block;width:100%;max-width:100%;height:auto;}
#grease1825 .gs-svg:focus-within{outline:2px solid #bfdbfe;outline-offset:2px;}

/* Page title belongs to the ASPX page; JS renders only the calculator. */
.gs-page-intro {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 16px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-family: inherit;
    color: #0f172a;
}
.gs-page-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1.2;
}
.gs-page-intro p {
    margin: 0;
    max-width: 850px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}
@media (max-width: 580px) {
    .gs-page-intro { padding: 20px 10px 14px; }
}
