:root{--bg:#0f1720;--card:#0b1220;--muted:#9aa4b2;--accent:#7dd3fc}
*{box-sizing:border-box;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif}
html,body{height:100%}
body{margin:0;background:linear-gradient(180deg,#071029 0%,#0f1720 100%);color:#e6eef6;padding:32px}
main{width:100%;min-height:calc(100vh - 64px);background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);padding:24px;border-radius:12px;box-shadow:0 6px 24px rgba(2,6,23,0.6)}
h1,h2{margin:0;font-size:20px}
.app-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:1px solid rgba(255,255,255,0.08);margin-bottom:24px}
.app-header p,.tool-heading p,.input-note{margin:6px 0 0;color:var(--muted);font-size:14px}
.tool-heading .work-in-progress{color:var(--accent);font-weight:600}
.tabs{display:flex;gap:4px;flex-wrap:wrap}
button.tab{background:transparent;color:var(--muted);border-radius:10px 10px 0 0;padding:14px 20px;font-size:16px;font-weight:600}
button.tab.is-active{background:rgba(125,211,252,.16);color:var(--accent)}
.tab-link{align-items:center;border-radius:10px 10px 0 0;color:var(--muted);display:inline-flex;font-size:16px;font-weight:600;padding:14px 20px;text-decoration:none}
.tab-link:hover{background:rgba(125,211,252,.12);color:var(--accent)}
.tool-heading{margin-bottom:18px}
.controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.field{display:flex;flex-direction:column;gap:6px}
.controls label{font-size:12px;color:var(--muted)}
.controls select,.controls input{padding:8px;border-radius:6px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02);color:inherit}
.controls select{background:#fff;color:#022;}
.controls select option{color:#022}
button{background:var(--accent);border:none;padding:10px 14px;border-radius:8px;color:#012;cursor:pointer}
#results,#ore-results{margin-top:18px;display:flex;min-height:0;flex-direction:column}
#output,#ore-output{margin-top:8px;background:rgba(255,255,255,0.02);padding:12px;border-radius:8px;color:var(--muted);min-height:180px;overflow:auto}
.input-note{font-size:12px}
.result-section{margin-bottom:18px}
.result-section:last-child{margin-bottom:0}
.result-section h3{margin:0 0 8px;font-size:14px;color:#e6eef6}
.res-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,0.02)}
.res-row b{color:#fff}
.empty{padding:6px 0}
.app-credit{margin:18px 0 0;text-align:center;color:var(--muted);font-size:12px}.app-credit strong{color:var(--accent);font-weight:600}.app-credit span{margin:0 5px;color:rgba(255,255,255,.35)}
@media (max-width:640px){body{padding:12px}main{min-height:calc(100vh - 24px);padding:16px}.app-header{flex-direction:column;gap:16px}.tabs{width:100%}.tab{flex:1}}
