:root{--brand-navy:#131b24;--brand-orange:#ff8034;--brand-red:#ef4b2e;--brand-gradient:linear-gradient(135deg, #ff8a3d 0%, #ef4b2e 100%);--bg:#faf8f6;--surface:#fff;--surface-2:#f6f3f0;--border:#e8e2dc;--text:#131b24;--muted:#687280;--accent:#f26a2e;--accent-ink:#b93a1c;--accent-soft:#fff1e8;--side:#131b24;--side-text:#c7ccd3;--ok:#16a34a;--warn:#d97706;--bad:#dc2626;--crit:#7f1d1d;--info:#2563eb;--radius:12px;--shadow:0 1px 2px #131b240f, 0 4px 16px #131b240d;color:var(--text);background:var(--bg);font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--bg:#0d1218;--surface:#151d27;--surface-2:#111821;--border:#243040;--text:#e8eaed;--muted:#97a1ad;--side:#0a0f15;--shadow:none;--accent-soft:#2a1a12;--accent-ink:#ff9a5c}.badge-ok{background:#052e16!important}.badge-warn{background:#451a03!important}.badge-bad{background:#450a0a!important}.badge-info{background:#172554!important}.fp-text{fill:#0f172a}}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1,h2,h3,h4{margin:0 0 .4rem;line-height:1.25}h3{font-size:1rem}h4{margin-top:.9rem;font-size:.9rem}p{margin:.35rem 0}code{background:var(--surface-2);border-radius:4px;padding:1px 5px}.app{min-height:100vh;display:flex}.sidebar{background:var(--side);width:260px;color:var(--side-text);flex-direction:column;flex-shrink:0;height:100vh;display:flex;position:sticky;top:0}.brand{border-bottom:1px solid #222c38;align-items:center;gap:.7rem;padding:1.2rem 1.1rem;display:flex}.brand-mark{filter:drop-shadow(0 0 1px #ffffff59);width:38px;height:44px}.brand-mark,.topbar-mark{background:#faf8f6;border-radius:8px;padding:3px}.topbar-mark{width:30px;height:34px}.wordmark{letter-spacing:-.02em;font-size:1.15rem;font-weight:800}.brand strong{color:#fff;display:block}.brand span{color:#94a3b8;font-size:.75rem}.sidebar nav{flex-direction:column;flex:1;gap:2px;padding:.8rem .6rem;display:flex;overflow-y:auto}.sidebar nav a{color:var(--side-text);border-radius:8px;padding:.55rem .7rem;font-size:.9rem;text-decoration:none}.sidebar nav a:hover{color:#fff;background:#1d2733}.sidebar nav a.active{background:var(--brand-gradient);color:#fff;font-weight:600;box-shadow:0 4px 14px #ef4b2e59}.sidebar-foot{color:#6b7684;border-top:1px solid #222c38;padding:1rem}.main{flex:1;min-width:0}.topbar{display:none}.content{max-width:1400px;margin:0 auto;padding:1.6rem 2rem 3rem}.layout-2{grid-template-columns:minmax(300px,400px) 1fr;align-items:start;gap:1.2rem;display:grid}.layout-2>.card:first-child{position:sticky;top:1rem}.stack{flex-direction:column;gap:1rem;min-width:0;display:flex}.grid-2{grid-template-columns:1fr 1fr;gap:.8rem 1rem;display:grid}.row{align-items:center;display:flex}.gap{gap:.5rem}.between{justify-content:space-between;gap:.6rem}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.right{text-align:right}.muted{color:var(--muted)}.small{font-size:.82rem}.big{font-size:1.8rem;font-weight:700}.ok-text{color:var(--ok);font-weight:600}.page-header{align-items:center;gap:1rem;margin-bottom:1.2rem;display:flex}.page-header h1{font-size:1.45rem}.page-header p{color:var(--muted);margin:0}.page-icon{background:var(--surface);border:1px solid var(--border);width:52px;height:52px;box-shadow:var(--shadow);border-radius:14px;place-items:center;font-size:1.7rem;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:1.1rem 1.2rem}.card+.card{margin-top:0}.content>.card{margin-bottom:1rem}.card-head{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.6rem;display:flex}.accent-bad{border-left:4px solid var(--bad)}.item{border-top:1px solid var(--border);padding:.7rem 0}.item:first-of-type{border-top:0;padding-top:0}.kv{grid-template-columns:110px 1fr;gap:.2rem .8rem;margin-top:.35rem;font-size:.87rem;display:grid}.kv>span:nth-child(odd){color:var(--muted)}.form{flex-direction:column;gap:.85rem;display:flex}.field{flex-direction:column;gap:.3rem;display:flex}.field-label{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:.8rem;font-weight:600}.field-hint{color:var(--muted);font-size:.75rem}.field-error{color:var(--bad);margin-top:.3rem;font-size:.82rem}input,select,textarea{font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:8px;width:100%;padding:.55rem .7rem}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}textarea{resize:vertical}.btn{background:var(--brand-gradient);color:#fff;cursor:pointer;font-weight:700;font:inherit;border:0;border-radius:8px;padding:.65rem 1.1rem;font-weight:700}.btn:hover:not(:disabled){filter:brightness(1.05)}.btn:disabled{opacity:.6;cursor:progress}.link-btn{color:var(--info);cursor:pointer;font:inherit;background:0 0;border:0;padding:0;font-size:.85rem;text-decoration:none}.icon-btn{background:var(--surface-2);border:1px solid var(--border);cursor:pointer;width:38px;height:38px;color:var(--text);border-radius:8px;flex-shrink:0;font-size:1.1rem}.icon-btn.on{background:var(--brand-gradient);color:#fff}.chips{flex-wrap:wrap;gap:.4rem;display:flex}.chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer;text-align:left;border-radius:999px;padding:.3rem .75rem;font-size:.82rem}.chip.on{background:var(--brand-gradient);border-color:var(--accent);color:#fff;font-weight:600}.dropzone{border:2px dashed var(--border);border-radius:var(--radius);cursor:pointer;background:var(--surface-2);place-items:center;min-height:170px;transition:border-color .15s;display:grid;overflow:hidden}.dropzone:hover,.dropzone.drag{border-color:var(--accent)}.dropzone.has-image{border-style:solid}.dropzone img{object-fit:contain;width:100%;max-height:280px;display:block}.dropzone-empty{text-align:center;flex-direction:column;align-items:center;gap:.3rem;padding:1rem;display:flex}.dz-icon{color:var(--accent);font-size:1.6rem}.dz-footer{justify-content:space-between;margin-top:.35rem;display:flex}.badge{white-space:nowrap;border-radius:999px;padding:.15rem .6rem;font-size:.75rem;font-weight:700;display:inline-block}.badge-ok{color:var(--ok);background:#dcfce7}.badge-warn{color:var(--warn);background:#fef3c7}.badge-bad{color:var(--bad);background:#fee2e2}.badge-crit{background:var(--crit);color:#fff}.badge-info{color:var(--info);background:#dbeafe}.tag{background:var(--surface-2);border:1px solid var(--border);color:var(--muted);border-radius:6px;padding:0 .45rem;font-size:.72rem;display:inline-block}.stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem;margin:.6rem 0;display:grid}.stat{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:.7rem .8rem}.stat-label{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:.75rem}.stat-value{font-size:1.3rem;font-weight:700}.stat-hint{color:var(--muted);font-size:.75rem}.summary-row{align-items:center;gap:1.2rem;display:flex}.ring{flex-direction:column;align-items:center;display:flex}.ring-track{fill:none;stroke:var(--border);stroke-width:9px}.ring-value{fill:none;stroke-width:9px;stroke-linecap:round;transition:stroke-dasharray .6s}.ring-text{fill:var(--text);font-size:24px;font-weight:800}.ring-caption{color:var(--muted);font-size:.78rem}.confidence{align-items:center;gap:.5rem;display:flex}.confidence .bar{background:var(--border);border-radius:99px;width:120px;height:7px;overflow:hidden}.confidence .bar div{background:var(--info);height:100%}.list{margin:.2rem 0;padding-left:1.2rem}.list li{margin:.2rem 0}.table{border-collapse:collapse;width:100%;font-size:.87rem;display:block;overflow-x:auto}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.5rem .6rem}.table th{color:var(--muted);text-transform:uppercase;font-size:.75rem}.table tfoot td{font-weight:700}.num{white-space:nowrap;text-align:right!important}.checklist{columns:2;margin:0;padding:0;list-style:none}.checklist li{break-inside:avoid;padding:.25rem 0}.checklist input{width:auto;margin-right:.4rem}.alert{border-radius:10px;justify-content:space-between;gap:.6rem;padding:.7rem .9rem;display:flex}.alert-error{color:#7f1d1d;background:#fef2f2;border:1px solid #fecaca}.alert-warn{color:#78350f;background:#fffbeb;border:1px solid #fde68a;margin-top:.5rem}.meta{flex-direction:column;gap:.4rem;display:flex}.meta-row{flex-wrap:wrap;align-items:center;gap:.7rem;display:flex}.json{color:#e2e8f0;background:#0f172a;border-radius:10px;max-height:420px;padding:.9rem;font-size:.76rem;overflow:auto}.loading{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:.6rem;padding:1rem;display:flex}.spinner{border:3px solid var(--border);border-top-color:var(--accent);vertical-align:middle;border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.modules{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.module-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:inherit;box-shadow:var(--shadow);gap:.9rem;padding:1.1rem;text-decoration:none;transition:transform .12s,border-color .12s;display:flex}.module-card:hover{border-color:var(--accent);transform:translateY(-2px)}.module-card p{color:var(--muted);font-size:.88rem}.module-icon{background:var(--accent-soft);border-radius:12px;flex-shrink:0;place-items:center;width:48px;height:48px;font-size:1.6rem;display:grid}.activity{margin:0;padding:0;list-style:none}.activity li{border-bottom:1px solid var(--border);padding:.55rem .3rem;font-size:.9rem}.activity.selectable li{cursor:pointer;border-radius:6px}.activity.selectable li:hover,.activity li.active{background:var(--surface-2)}.history-img{border-radius:10px;max-width:100%;max-height:260px}.value-hero{text-align:center;padding:.5rem 0 .2rem}.value-mid{color:var(--accent-ink);font-size:2.3rem;font-weight:800}@media (prefers-color-scheme:dark){.value-mid{color:var(--accent)}}.value-range{color:var(--muted)}.barlist{flex-direction:column;gap:.45rem;margin-bottom:.6rem;display:flex}.barlist-row{grid-template-columns:minmax(120px,34%) 1fr auto;align-items:center;gap:.6rem;font-size:.85rem;display:grid}.barlist-track{background:var(--surface-2);border:1px solid var(--border);border-radius:99px;height:10px;overflow:hidden}.barlist-track div{border-radius:99px;height:100%}.barlist-value{white-space:nowrap;font-weight:600}.gantt{font-size:.8rem;overflow-x:auto}.gantt-row{grid-template-columns:minmax(120px,30%) 1fr;align-items:center;min-width:440px;display:grid}.gantt-label{white-space:nowrap;text-overflow:ellipsis;padding-right:.6rem;overflow:hidden}.gantt-id{color:var(--muted);font-weight:700}.gantt-track{border-left:1px solid var(--border);background:repeating-linear-gradient(90deg, transparent 0 calc(100%/6 - 1px), var(--border) calc(100%/6 - 1px) calc(100%/6));height:26px;position:relative}.gantt-axis .gantt-track{background:0 0;height:20px}.gantt-axis span{color:var(--muted);white-space:nowrap;font-size:.7rem;position:absolute;transform:translate(-50%)}.gantt-axis span:first-child{transform:none}.gantt-axis span:last-child{transform:translate(-100%)}.gantt-bar{color:#fff;opacity:.9;border-radius:4px;align-items:center;height:18px;padding:0 4px;font-size:.68rem;display:flex;position:absolute;top:4px;overflow:hidden}.gantt-bar.critical{outline:2px solid var(--bad);outline-offset:1px;opacity:1}.legend{color:var(--muted);flex-wrap:wrap;gap:.8rem;margin-top:.7rem;font-size:.75rem;display:flex}.legend i{vertical-align:middle;border-radius:2px;width:10px;height:10px;margin-right:4px;display:inline-block}.legend .crit-swatch{border:2px solid var(--bad)}.concept{grid-template-columns:1fr 1fr;gap:1.2rem;display:grid}.palette{gap:.4rem;margin:.5rem 0;display:flex}.palette span{border:1px solid var(--border);border-radius:8px;width:34px;height:34px}.floorplan{background:var(--surface-2);border-radius:10px;width:100%;max-width:420px}.fp-outline{fill:none;stroke:var(--text);stroke-width:1.2px}.fp-room{stroke:#334155;stroke-width:.5px}.fp-text{fill:#1e293b;font-weight:600}.forecast{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin-top:.6rem;display:grid}.forecast-day{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:.1rem;padding:.6rem;font-size:.82rem;display:flex}.chat{flex-direction:column;gap:.7rem;height:calc(100vh - 170px);min-height:480px;display:flex}.chat-log{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;flex:1;gap:.8rem;padding:1rem;display:flex;overflow-y:auto}.chat-empty{text-align:center;max-width:640px;margin:auto}.chat-empty .chips{justify-content:center}.bubble{border-radius:14px;max-width:82%;padding:.7rem .9rem;font-size:.92rem}.bubble.user{background:var(--brand-gradient);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}.bubble.assistant{background:var(--surface-2);border:1px solid var(--border);border-bottom-left-radius:4px;align-self:flex-start}.bubble-img{border-radius:8px;max-width:220px;margin-bottom:.4rem;display:block}.bubble details{margin:.4rem 0}.bubble summary{cursor:pointer;font-size:.85rem;font-weight:600}.bubble-meta{margin-top:.4rem}.refs{flex-wrap:wrap;gap:.3rem;margin:.4rem 0;display:flex}.md p{margin:.3rem 0}.chat-input{align-items:flex-end;gap:.5rem;display:flex}.chat-input textarea{min-height:42px;max-height:160px}.chat-upload{max-width:360px}@media (width<=1000px){.layout-2{grid-template-columns:1fr}.layout-2>.card:first-child{position:static}.concept{grid-template-columns:1fr}}@media (width<=760px){.sidebar{z-index:20;transition:left .2s;position:fixed;left:-270px}.sidebar.open{left:0;box-shadow:0 0 40px #0006}.topbar{background:var(--surface);border-bottom:1px solid var(--border);z-index:10;align-items:center;gap:.7rem;padding:.6rem 1rem;display:flex;position:sticky;top:0}.topbar-title{font-weight:700}.content{padding:1rem}.grid-2{grid-template-columns:1fr}.checklist{columns:1}.summary-row{flex-direction:column;align-items:stretch}.bubble{max-width:95%}.modules{grid-template-columns:1fr}}.legal-chat{height:calc(100vh - 190px)}.advice{width:100%;max-width:100%}.advice-summary{margin:.5rem 0;font-size:1rem;font-weight:600}.advice-sec{margin-top:.9rem}.advice-sec h4{margin:0 0 .4rem}.advice-sec summary{cursor:pointer;font-size:.85rem;font-weight:600}.flag{border-left:3px solid var(--warn);background:var(--surface);border-radius:0 8px 8px 0;margin:.4rem 0;padding:.35rem .7rem}.cite{color:#3730a3;font:inherit;cursor:pointer;vertical-align:baseline;background:#eef2ff;border:1px solid #c7d2fe;border-radius:6px;margin:0 .15rem;padding:0 .35rem;font-size:.72rem;font-weight:700;display:inline-block}.cite:hover{background:#e0e7ff}.source{border-bottom:1px solid var(--border);padding:.45rem 0}.source.cited strong{color:var(--info)}.source-card{background:var(--surface);border:1px solid #c7d2fe;border-radius:10px;margin:.6rem 0;padding:.7rem .9rem;font-size:.87rem}.kb-list{max-height:260px;margin:.5rem 0 0;padding:0;font-size:.82rem;list-style:none;overflow-y:auto}.kb-list li{padding:.2rem 0}.disclaimer{margin-top:.6rem;font-style:italic}@media (prefers-color-scheme:dark){.cite{color:#c7d2fe;background:#1e1b4b;border-color:#3730a3}.source-card{border-color:#3730a3}}.page-logo{width:30px;height:34px}
