/* Adapt the existing, verified browser-tool controls to the Website V2 shell.
   Keep all tool element IDs and production business logic unchanged. */
body[data-page="unit-converter"],body[data-page="currency-converter"],
body[data-page="aed-to-inr"],body[data-page="time-converter"],
body[data-page="kmpl-calculator"],body[data-page="fuel-cost-calculator"],
body[data-page="pdf-tools"],body[data-page="pdf-merge"],
body[data-page="pdf-split"],body[data-page="pdf-rotate"],
body[data-page="gold-price"],body[data-page="weather"]{
 --primary:#6741e6;--primary-hover:#4f2bc8;--secondary:#eae3ff;--secondary-hover:#dfd5ff;
 --border:#e4def3;--strong:#d6c9ee;--soft:#f7f4ff;--text:#27243c;--text2:#625c76;
 --max:1180px;--tool:820px;--read:820px;
}
.site-wrap{width:min(calc(100% - 68px),1220px);margin-inline:auto}
.tool-page-head{padding:32px 0 25px;border-bottom:1px solid #e5dff1;background:#faf8ff}
.tool-page-head h1{font-size:clamp(26px,2.8vw,38px);font-weight:780;line-height:1.2;letter-spacing:-.04em;color:#221e38;margin:4px 0 10px;max-width:none}
.tool-page-head p:last-child{font-size:14px;color:#77718d;max-width:780px;margin-top:5px}
.tool-layout{padding:29px 0 53px}
.tool-panel{max-width:900px;padding:26px;border:1px solid #e3dcf3;background:#fff;border-radius:17px;box-shadow:0 8px 27px rgba(49,35,121,.09)}
.tool-panel h2{font-size:20px;font-weight:750}
.tool-panel .field>span,.tool-panel label.field span{color:#4f486d;font-weight:680}
.tool-panel .input,.tool-panel .select,.tool-panel input[type="file"],.tool-panel textarea{
 background:#fcfbff;border:1px solid #d9d2e8;border-radius:9px;min-height:43px;color:#27243c;padding:10px 12px;
}
.tool-panel .input:focus,.tool-panel .select:focus,.tool-panel input[type="file"]:focus,.tool-panel textarea:focus{
 border-color:#9178eb;box-shadow:0 0 0 3px rgba(120,89,224,.14);
}
.tool-panel .button,.tool-panel .button-secondary{min-height:42px;height:auto;border-radius:9px;padding:10px 15px;line-height:1.3;font-weight:730}
.tool-panel .button.primary{background:#6741e6;color:white;border:1px solid #6741e6}
.tool-panel .button.primary:hover{background:#4f2bc8}
.tool-panel .button.secondary,.tool-panel .button-secondary{background:#ede8ff;color:#4d32a5;border:1px solid #e0d6ff}
.tool-panel .button.secondary:hover,.tool-panel .button-secondary:hover{background:#e2daff}
.tool-panel .result-panel,.tool-panel .result-card,.tool-panel .summary-card,.tool-panel .mini-card,.tool-panel .weather-card{
 background:#f8f6ff;border-color:#e7e1f7;border-radius:11px
}
.tool-panel .result-panel strong,.tool-panel .result-card strong{color:#2f2455}
.tool-panel a,.related-links a,.output-link a{color:#5735d0}
.tool-panel a:hover,.related-links a:hover,.output-link a:hover{text-decoration:underline}
.meta-note,.processing-note,.result-detail{color:#6d667e}
.related-links{max-width:900px;padding-top:19px;margin-top:23px;border-color:#e6dff3;gap:10px}
.related-links a{display:inline-block;background:#fff;padding:9px 13px;border:1px solid #e7e0f4;border-radius:8px;text-decoration:none;font-size:12px;font-weight:730}
.tool-page-back{margin-top:20px;display:inline-block;font-size:12px;font-weight:740;color:#6540db;text-decoration:none}
.tool-page-back:hover{text-decoration:underline}
.preview-note{padding:9px 12px;border-radius:8px;background:#f7f3ff;color:#776c91;border:1px solid #e9e1ff;font-size:12px;margin:0 0 17px;max-width:900px}
@media(max-width:850px){.site-wrap{width:calc(100% - 38px)}}
@media(max-width:580px){.site-wrap{width:calc(100% - 30px)}.tool-page-head{padding:25px 0 22px}.tool-layout{padding:21px 0 40px}.tool-panel{padding:17px}.tool-panel .form-grid,.tool-panel .results-grid,.tool-panel .preview-grid{grid-template-columns:1fr}}
