/* AIVELI 0.6 — crisp white/neutral system, clear data entry. */
:root{--paper:#f7f8fa;--white:#fff;--ink:#202a38;--muted:#626e7d;--line:#e1e6ee;--accent:#465f79;--soft:#f0f3f7;--dark:#202a38;--shadow:0 18px 50px rgba(22,38,56,.06)}
html,body,#app{background:#f7f8fa;color:var(--ink)}
.rail{background:#fff!important;border-right:1px solid #e4e8ee;box-shadow:none!important}
.rail .logo{background:#243347!important;color:#fff!important;border:0}
.rail .logo span{color:#c5d7e9!important}
.rail-divider{background:#e6eaf0!important}
.rail-btn{color:#667385!important}.rail-btn:hover{background:#edf2f8!important;color:#223650!important}
.rail-btn.active,.rail-btn.active:hover{background:#e9f0f7!important;color:#263f5b!important;box-shadow:none!important}
.topbar{height:66px;min-height:66px;background:rgba(255,255,255,.96)!important;border-bottom:1px solid #e4e8ee!important;box-shadow:none!important}
.content{background:#f8f9fb}.page{padding-top:31px}
.h1{font-weight:590;color:#202a38}.sub,.tiny,.muted{color:#647184}
.metric,.panel,.project-card,.supply-strip>div,.status-panel{background:white;border-color:#e2e7ef;box-shadow:0 4px 18px rgba(25,43,65,.025)}
.primary{background:#273b53!important;border-color:#273b53!important;color:white!important}.primary:hover{background:#39546f!important}
.outline,.iconbtn,.input,.select,.textarea{background:#fff;border-color:#dce3ec;color:#34475e}
.outline:hover,.iconbtn:hover{background:#f0f5fa;color:#26394f}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #507fae;outline-offset:3px}
.badge{border-color:#e2e8f0;background:#f5f8fb;color:#52657b}
.badge.warn{background:#fff1ea;color:#9d472e;border-color:#f7dccb}
.save-indicator{font-weight:550}.save-indicator #save-status{white-space:normal;max-width:250px;line-height:1.3}
.estimate-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
.estimate-steps>div{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e2e7ef;padding:15px 18px;border-radius:12px;color:#516071;font-size:12px}
.estimate-steps b{font-size:17px;color:#8296aa;font-weight:650;font-variant-numeric:tabular-nums}
.estimate-steps span{line-height:1.35}
.estimate-metrics{margin-bottom:18px}
.estimate-warning,.estimate-ready{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:12px;margin:17px 0 20px;font-size:12px;line-height:1.65}
.estimate-warning{background:#fff7f2;color:#855338;border:1px solid #f0ddcd}
.estimate-ready{background:#eff9f5;color:#376653;border:1px solid #d6ede1}
.estimate-warning svg,.estimate-ready svg{flex-shrink:0;margin-top:2px}
.estimate-table{table-layout:auto;min-width:700px}
.estimate-table td{vertical-align:middle}
.estimate-table td:first-child{min-width:200px}
.estimate-table .number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.inline-rate{width:126px;max-width:100%;padding:10px 9px;border:1px solid #cdd8e5;border-radius:9px;background:#fbfdff;text-align:right;color:#26394d;font-size:12px;outline-offset:2px}
.inline-rate:focus{border-color:#507fae;box-shadow:0 0 0 3px rgba(64,112,163,.12)}
.inline-rate::placeholder{color:#95a1af;font-size:10px}
.row-unpriced{background:#fdfdfd}.unpriced{font-size:11px;color:#8a95a1;font-weight:400;white-space:normal}
.estimate-footnote{font-size:12px;color:#647184;line-height:1.75;margin:19px 0 26px;max-width:900px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.integrated-editor{background:#f9fbfd}.integrated-shortcuts{background:#fff!important;color:#26394d!important;border-bottom:1px solid #e3e8ef}
.integrated-shortcuts button{border-color:#dfe5ed!important}
.native-frame-wrap{background:#f7f9fc}
#aiveli-intelligence .aiv-ai-drawer{background:#f8fafd;box-shadow:-22px 0 72px rgba(25,42,60,.13)}
#aiveli-intelligence .aiv-ai-mark{background:#273b53;color:#fff}
#aiveli-intelligence .aiv-ai-bubble.user{background:#273b53;color:white}
@media(max-width:850px){.estimate-steps{grid-template-columns:1fr}.estimate-steps>div{padding:10px 14px}.page{padding-top:20px}}
@media(max-width:520px){.estimate-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.estimate-metrics .metric{padding:16px 12px}.estimate-metrics .metric strong{font-size:20px}.topbar{height:58px;min-height:58px}.page{padding:19px 14px 76px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Calculations are reachable directly from full-screen Visualizer. */
.shell-design .integrated-shortcuts button[data-nav="estimate"]{display:flex!important;background:#edf3fa!important;color:#244b71!important;border-color:#d6e2ef!important}
@media(max-width:600px){.shell-design .integrated-shortcuts strong{display:none!important}.shell-design .integrated-shortcuts{gap:5px;padding:4px 7px;max-width:calc(100% - 12px)}.shell-design .integrated-shortcuts button{font-size:10px!important;padding:6px 7px!important}.shell-design .integrated-shortcuts .integrated-ai{font-size:10px!important}}
