:root{--ink:#24263b;--muted:#7c7f91;--accent:#6051db;--line:#e7e8f0}*{box-sizing:border-box}body{background:#f7f8fc;color:var(--ink);font:14px 'Segoe UI',sans-serif;margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:white;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:700;color:var(--ink);white-space:nowrap}.brand b{background:var(--accent);color:white;border-radius:10px;padding:7px}.brand small{font-size:10px;background:#eeebff;color:var(--accent);padding:4px;border-radius:4px}.workspace-label{font-size:10px;color:var(--muted);letter-spacing:1.5px;margin:48px 10px 15px}.nav-item{background:#eeebff;padding:14px;border-radius:8px;font-weight:600}.sidebar-note{margin-top:auto;font-size:12px;padding:20px 8px;line-height:1.8}.sidebar-note p{color:var(--muted);margin-top:9px}.sidebar-footer{border-top:1px solid var(--line);padding-top:20px;font-size:10px;color:var(--muted);line-height:2}.app-shell{margin-left:246px}header{height:78px;border-bottom:1px solid var(--line);background:#ffffffb0;display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:12px}.local-badge{border:1px solid var(--line);border-radius:20px;padding:7px 12px;color:#668774;font-size:11px}main{padding:45px;max-width:1600px;margin:auto;min-height:calc(100vh - 135px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px;flex-wrap:wrap}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--accent);margin-bottom:13px}h1{font-size:30px;letter-spacing:-1px;font-weight:650;margin-bottom:12px}h2{font-size:18px;font-weight:650}h3{font-size:14px;font-weight:650}.muted{color:var(--muted)}.btn{border-radius:8px;padding:11px 19px;font-size:13px;font-weight:600}.btn-primary{background:var(--accent);border-color:var(--accent);box-shadow:0 4px 10px #6051db17}.btn-primary:hover{background:#4a3ebd;border-color:#4a3ebd}.btn-light{background:#f2f3f8}.stats{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:1px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--line);margin:15px 0 38px}.stats>div{background:white;padding:23px 27px}.stats span{color:var(--muted);font-size:12px}.stats strong{display:block;font-size:28px;font-weight:600;margin-top:7px}.stats .stat-text{font-size:17px;padding-top:5px}.stats small{font-size:10px;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-heading>span{font-size:11px}.empty-state{background:white;border:1px dashed #d9d9ea;border-radius:13px;text-align:center;padding:65px 20px}.empty-icon{width:68px;height:68px;display:grid;place-items:center;background:#f0edff;border-radius:20px;margin:0 auto 25px;color:var(--accent);font-size:35px}.empty-state h2{font-size:22px;margin-top:20px}.empty-state p{color:var(--muted);line-height:1.9;margin:15px 0 25px}.empty-state small{display:block;font-size:11px;color:var(--muted);margin-top:20px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px}.project-card,.form-card{background:white;border:1px solid var(--line);border-radius:12px;padding:25px}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.avatar{background:#eeebff;color:var(--accent);border-radius:11px;width:45px;height:45px;display:grid;place-items:center;font-weight:650;font-size:20px}.pill{display:inline-block;color:var(--accent);background:#f1effc;font-size:10px;padding:6px 10px;border-radius:20px}.description{color:var(--muted);line-height:1.7;height:48px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.progress-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:25px 0 9px}.progress{height:5px;background:#f0eff7}.progress-bar{background:var(--accent)}.card-meta{color:var(--muted);font-size:10px;margin-top:15px}.card-actions{border-top:1px solid var(--line);margin-top:22px;padding-top:17px;display:flex;justify-content:space-between;font-size:12px}.back-link{display:inline-block;font-size:12px;margin-bottom:25px}.workflow{display:grid;grid-template-columns:repeat(6,1fr);margin-bottom:28px;background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.workflow a{padding:17px 10px;color:var(--muted);font-size:11px;text-align:center;border-bottom:3px solid transparent}.workflow span{display:block;margin-top:5px}.workflow .current{color:var(--accent);background:#f8f7ff;border-bottom-color:var(--accent)}.brief-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:26px}.form-card>p{font-size:12px;margin-bottom:25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.field.wide{grid-column:1/-1}label{display:block;margin-bottom:8px;font-size:12px;font-weight:600}.form-control{border-color:#e0e2eb;border-radius:7px;font-size:13px;padding:11px;background:#fdfdff}.form-control:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6051db17}.field .text-danger{font-size:11px}.form-actions{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:24px;margin-top:25px}.brief-guide{padding:22px 5px;color:var(--muted);font-size:12px;line-height:1.9}.brief-guide h3{color:var(--ink)}.brief-guide hr{margin:25px 0}footer{padding:20px 45px;color:#999bac;font-size:10px}a:focus-visible,button:focus-visible{outline:3px solid #a899ff;outline-offset:4px}@media(max-width:1100px){.brief-layout{grid-template-columns:1fr}.brief-guide{background:#eeedf7;border-radius:12px;padding:23px}.sidebar{width:210px;padding:28px 15px}.app-shell{margin-left:210px}main{padding:30px}header{padding:0 30px}}@media(max-width:720px){.sidebar{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center;justify-content:space-between}.workspace-label,.sidebar-note,.sidebar-footer{display:none}.brand{font-size:16px}.nav-item{font-size:11px;padding:10px}.app-shell{margin:0}header{height:55px;padding:0 20px}.local-badge{font-size:9px}main{padding:25px 18px}h1{font-size:25px}.stats{grid-template-columns:1fr 1fr}.stats>div:last-child{grid-column:1/-1}.section-heading>span{display:none}.workflow{grid-template-columns:repeat(3,1fr)}.form-grid{grid-template-columns:1fr}.form-card{padding:20px}.empty-state{padding:40px 18px}.form-actions{flex-wrap:wrap}footer{padding:20px}}

.advanced{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.advanced summary{font-weight:600;cursor:pointer;margin-bottom:22px}.reference-invite,.discovery-invite{padding:20px;background:#f7f6ff;border-radius:10px;font-size:13px}.discovery-invite{margin-top:25px}.notice{background:#f0edff;border:1px solid #e4defb;border-radius:10px;padding:18px 21px;margin:20px 0;line-height:1.8;font-size:13px}.action-row{display:flex;gap:12px;flex-wrap:wrap}.intelligence-actions p{line-height:1.8}.reference-grid,.source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px;margin-top:23px}.reference-card{border:1px solid var(--line);border-radius:10px;padding:17px;min-width:0}.reference-card img{width:100%;height:210px;object-fit:contain;background:#f4f4f9;border-radius:6px;margin-bottom:15px}.reference-card p{margin-top:12px}.source-url{font-size:11px;overflow-wrap:anywhere;color:var(--muted)}.source-card{min-width:0;font-size:12px;line-height:1.8}.source-card .card-top{gap:10px}.status-Failed{color:#a34747}.status-Unavailable{color:#927032}.status-SuccessfullyCollected,.status-ManualReference{color:#438264}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.source-card details p{max-height:300px;overflow:auto}.upload-previews{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.upload-previews img{width:90px;height:90px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.suggestion{border-top:1px solid var(--line);padding:22px 0}.suggestion-values{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:12px}.suggestion-values>div{padding:15px;border-radius:8px;background:#f8f8fc}.analysis-section{margin-top:25px}.analysis-section textarea{line-height:1.8}.palette{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0}.palette>div{max-width:180px;font-size:12px}.swatch{display:block;width:55px;height:55px;border:1px solid #ddd;border-radius:8px;margin-bottom:8px}.run-history{border-top:1px solid var(--line);padding:18px 0}.run-history summary{cursor:pointer;margin-bottom:12px}.run-history pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;background:#f8f8fc;padding:15px;font-size:11px}.busy-status{margin-top:20px;color:var(--accent);font-weight:600}summary:focus-visible{outline:3px solid #a899ff}html{scroll-behavior:smooth}section[id]{scroll-margin-top:20px}@media(max-width:720px){.suggestion-values{grid-template-columns:1fr}.source-grid,.reference-grid{grid-template-columns:1fr}.action-row .btn{width:100%}.action-row form{width:100%}.intelligence-actions .btn{width:100%}}
