/* Estimator preview: Estimate tab. Uses the app's tokens (navy, rust, cream). */
.est-banner{display:flex;gap:10px;align-items:flex-start;margin:0 16px 12px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--amber-bg);color:var(--text);font-size:13px;line-height:1.4}
.est-banner svg{width:18px;height:18px;flex:none;color:var(--amber);margin-top:1px}
.est-jobcard{margin:0 16px 12px;padding:12px 14px;display:grid;gap:10px}
.ej-row{display:flex;gap:12px;align-items:flex-end;justify-content:space-between}
.ej-row>div{display:flex;flex-direction:column;gap:3px}
.est-jobcard .lbl{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.est-jobcard b{font-family:var(--display);font-size:17px;color:var(--text)}
.ej-link{display:inline-flex;gap:6px;align-items:center;color:var(--blue);font-weight:600;font-size:14px;text-decoration:none}
.ej-link svg{width:16px;height:16px}
.muted{color:var(--muted)}
.est-views{display:flex;gap:6px;overflow-x:auto;margin:0 16px 12px;padding:3px;background:var(--surface2);border-radius:12px;scrollbar-width:none}
.est-views::-webkit-scrollbar{display:none}
.est-views button{flex:none;border:0;background:none;padding:8px 12px;border-radius:9px;font:600 13px var(--body);color:var(--muted)}
.est-views button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.est-head{margin:0 16px 12px;padding:14px}
.eh-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.est-head h3{margin:2px 0 0;font:800 20px var(--display);color:var(--text)}
.eh-stamp{display:flex;gap:8px;align-items:flex-start;margin-top:8px;font-size:12.5px;color:var(--muted);line-height:1.4}
.eh-stamp svg{width:14px;height:14px;flex:none;margin-top:2px}
.est-finish{margin-top:6px}
.est-finish button:disabled{opacity:.5}
.est-guard{margin:0 16px 12px;padding:12px 14px;display:flex;gap:10px;align-items:flex-start}
.est-guard>svg{width:20px;height:20px;flex:none;margin-top:1px}
.est-guard>div{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.4}
.est-guard b{font-size:14px}
.est-guard em{font-style:normal;color:var(--muted);font-size:12px}
.est-guard.warn{border-left:4px solid var(--amber)}
.est-guard.warn>svg{color:var(--amber)}
.est-guard.ok>svg{color:var(--green)}
.est-flags{display:flex;flex-wrap:wrap;gap:6px;margin:0 16px 12px}
.est-draws{margin:0 16px 12px;padding:12px 14px;display:grid;gap:6px;font-size:13.5px}
.est-draws>div{display:flex;justify-content:space-between;gap:10px}
.est-draws .sub{color:var(--muted);font-size:12.5px}
.est-area{display:flex;justify-content:space-between;margin:14px 16px 6px;font:800 12px var(--display);letter-spacing:.12em;color:var(--rust)}
.est-line{margin:0 16px 8px;padding:11px 13px;border:0;font:inherit;color:inherit}
.est-line.bad{box-shadow:inset 3px 0 0 var(--red),var(--shadow)}
.el-r1{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.el-d{font-weight:700;font-size:14px;line-height:1.3;min-width:0}
.el-d .no{display:inline-block;min-width:22px;color:var(--faint);font-weight:700}
.el-a{font-weight:800;font-size:14.5px;white-space:nowrap}
.el-r2{font-size:12.5px;color:var(--muted);margin-top:3px}
.el-r3{font-size:12.5px;margin-top:3px;color:var(--text)}
.el-r3 .unk,.unk{color:var(--amber);font-weight:700}
.el-need{margin-top:6px;font-size:12px;padding:6px 8px;border-radius:8px;background:var(--cream);color:var(--text)}
.el-flags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.el-flags .pill{font-size:11px}
.el-conf{display:flex;gap:6px;align-items:center;margin-top:6px;font-size:12px;color:var(--amber);font-weight:600}
.el-conf svg{width:14px;height:14px;flex:none}
.est-acts{display:grid;gap:8px;margin:14px 16px}
.est-note{margin:0 16px 12px;padding:12px 14px;display:flex;gap:10px;align-items:flex-start}
.est-note>svg{width:20px;height:20px;flex:none;color:var(--rust);margin-top:1px}
.est-note>div{display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:1.45;color:var(--muted)}
.est-note b{color:var(--text)}
.est-media{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 16px}
.em-tile{position:relative;border:0;padding:0;border-radius:12px;overflow:hidden;background:var(--surface2);aspect-ratio:1;font:inherit}
.em-tile img{width:100%;height:100%;object-fit:cover;display:block}
.em-tile span{position:absolute;left:6px;right:6px;bottom:6px;padding:4px 6px;border-radius:8px;background:rgba(10,27,48,.78);color:#fff;font-size:11px;font-weight:700;text-align:center}
.em-vid{position:absolute;top:6px;left:6px;display:flex;gap:4px;align-items:center;padding:2px 6px;border-radius:6px;background:rgba(10,27,48,.7);color:#fff;font-size:10px;font-style:normal;font-weight:700}
.em-vid svg{width:12px;height:12px}
.est-sug{margin:0 16px 8px;padding:11px 13px}
.est-sug.rejected{opacity:.6}
.es-r1{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.es-r1>div{display:flex;flex-direction:column;gap:2px}
.es-r1 b{font-size:14px}
.es-r1 .num{font-size:13px;color:var(--text);font-weight:700}
.es-r2{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.es-acts{display:flex;gap:8px;margin-top:9px}
.est-frame{border-radius:12px;overflow:hidden;background:#000;margin-bottom:10px}
.est-frame img,.est-frame video{display:block;width:100%;max-height:52vh;object-fit:contain}
.est-wo .main{min-width:0}
.wo-acts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.est-wo .amt{align-self:flex-start;font-weight:800}
.est-pre{white-space:pre-wrap;font:12.5px/1.5 ui-monospace,Menlo,Consolas,monospace;background:var(--surface2);padding:12px;border-radius:10px;margin:0;color:var(--text)}
.est-table{margin:0 16px;background:var(--surface);border-radius:var(--radius-sm);box-shadow:var(--shadow);overflow:hidden;font-size:12px}
.et-h,.et-r{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1fr;gap:6px;padding:9px 10px;align-items:start}
.et-h{background:var(--navy);color:#fff;font:700 10px var(--display);letter-spacing:.06em;text-transform:uppercase}
.et-r:nth-child(odd){background:var(--zebra)}
.et-r span{min-width:0;overflow-wrap:anywhere}
.et-r small{display:block;font-size:10.5px;margin-top:2px}
.et-r.tot{font-weight:800;background:var(--cream);color:var(--text)}
.et-r.un{color:var(--muted)}
.est-search{width:100%;padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:14px var(--body)}
.est-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.est-pick{padding:10px;margin-bottom:8px;display:grid;gap:8px}
.est-pick select,.est-pick input{width:100%;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:14px var(--body)}
.est-job{font-family:var(--display)}
.wo-acts .btn{flex:0 0 auto;width:auto;min-width:0;white-space:nowrap;padding:7px 12px;font-size:13px}
.est-wo .s{white-space:normal}
.et-h,.et-r{grid-template-columns:1.25fr repeat(4,1fr);gap:4px;padding:9px 8px}
.et-r{font-size:11.5px}
.et-r span{overflow-wrap:normal;word-break:normal}
.et-r .num,.et-r span:not(:first-child){font-variant-numeric:tabular-nums;white-space:nowrap}
.et-r small{white-space:normal}
/* batch 2: price checklist, no loss rule, money summary */
.est-ck em{margin-top:4px}
.est-guard.bad{border-left:4px solid var(--red)}
.est-guard.bad>svg{color:var(--red)}
.linkbtn{background:none;border:0;padding:0;color:var(--blue);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.el-need.neg{background:var(--red-bg);color:var(--red);font-weight:600}
.el-conf.ok{color:var(--green)}
.est-money{margin-bottom:0}
.est-money .et-r small{color:var(--muted)}
.ck-row{margin:0 0 10px;padding:12px;display:flex;flex-direction:column;gap:6px}
.ck-h{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.ck-h b{font-size:14px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.ck-s{font-size:12px;color:var(--muted);line-height:1.4}
.ck-row .field{margin:0}
.ck-row .btn{align-self:flex-start}
.est-money .et-h,.est-money .et-r{grid-template-columns:repeat(4,1fr);row-gap:3px}
.est-money .em-l,.est-money .em-b{grid-column:1/-1}
.est-money .em-l{font-size:13px}
.est-money .em-b{font-size:11px;color:var(--muted);margin:0}
.est-seq{padding:12px 16px}.est-seq summary{cursor:pointer;list-style:none}.est-seq summary .muted{display:block;font-size:12px}
.est-seq ol{margin:8px 0 0 18px;padding:0;font-size:13px;line-height:1.45}.est-seq li{margin:4px 0}
/* measurements and scope */
.est-src,.est-cc,.est-pitch,.est-q{margin:0 16px 8px;padding:11px 13px}
.est-src .muted,.est-cc .muted,.est-pitch .muted{font-size:12px}
.src-facts,.src-rooms{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.src-facts span,.src-rooms span{font-size:12px;padding:3px 8px;border-radius:8px;background:var(--surface2);color:var(--text)}
.src-rooms span{background:var(--green-bg)}
.est-cc.flag{box-shadow:var(--shadow),inset 3px 0 0 var(--red)}
.cc-rows{display:flex;flex-direction:column;margin-top:8px;border-top:1px solid var(--line)}
.cc-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.cc-row>div{display:flex;flex-direction:column;min-width:0;font-size:13px}
.cc-row small{font-size:11px;color:var(--muted)}
.cc-row .num{font-size:14px}
.cc-row.on{background:var(--green-bg);margin:0 -13px;padding:8px 13px}
.cc-row.ref{opacity:.72}
.cc-row.ref .num{font-weight:600}
.cc-pick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:9px;font-size:12.5px}
.pitch-chips,.q-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.chip{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 11px;font:600 12.5px var(--body);text-align:left}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.est-q{display:flex;flex-direction:column;gap:3px}
.est-q b{font-size:14px}
.est-q.done{opacity:.92}
.sc-pills{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
