.project-view { height:100dvh; overflow:auto; background:var(--bg); color:var(--text); }
.project-view * { box-sizing:border-box; }
.project-view button,.project-view select,.project-view input { font:inherit; color:var(--text); }
.project-view select { max-width:100%; }
.project-actions>label { max-width:100%; min-width:0; }
[data-density],[data-sample-chart] { overflow-x:auto; }
[data-density] svg,[data-sample-chart] svg { min-width:520px; }
.project-view button,.project-view select { border:1px solid var(--border); background:var(--surface); border-radius:8px; padding:8px 12px; cursor:pointer; }
.project-view button:disabled { opacity:.45; cursor:not-allowed; }
.project-view a { color:var(--blue); text-decoration:none; }
.project-view button:focus-visible,.project-view a:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.project-top { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px 28px; border-bottom:1px solid var(--border); background:var(--surface); }
.project-top h1 { font-size:19px; margin:4px 0 0; }
.project-top small,.project-muted { color:var(--muted); font-size:12px; }
.project-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.project-body { display:grid; grid-template-columns:248px minmax(0,1fr); min-height:calc(100dvh - 90px); }
.project-sidebar { padding:24px 16px; border-right:1px solid var(--border); background:var(--surface); }
.project-sidebar h2 { font-size:13px; margin:0 12px 12px; }
.project-sidebar nav { display:grid; gap:6px; }
.project-step { display:grid; grid-template-columns:26px 1fr; gap:6px; padding:12px 9px; border-radius:9px; color:var(--text)!important; font-size:13px; }
.project-step[aria-current=step] { background:var(--surface-3); }
.project-step span:first-child { color:var(--muted); padding-top:2px; }
.project-step strong { display:block; font-weight:550; line-height:1.55; }
.project-step small { display:block; margin-top:4px; color:var(--faint); font-size:11px; }
.project-step[data-status=passed] small,.project-step[data-status=passed]>span:first-child { color:var(--green); }
.project-step[data-status=failed] small { color:var(--red); }
.project-sidebar .project-actions { padding:18px 10px; }
.project-main { min-width:0; padding:28px; }
.project-workspace { display:grid; grid-template-columns:minmax(300px, .9fr) minmax(380px,1.1fr); align-items:start; gap:20px; }
.project-problem,.project-code,.project-panel { min-width:0; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.project-problem { padding:26px; line-height:1.85; font-size:14px; }
.project-problem h2 { font-size:22px; margin:6px 0 18px; line-height:1.45; }
.project-problem h3 { font-size:15px; margin:25px 0 8px; }
.project-problem p { margin:8px 0; color:var(--muted); }
.project-problem p:first-of-type { color:var(--text); }
.project-problem details { border-top:1px solid var(--border); margin-top:20px; padding-top:16px; }
.project-view summary { cursor:pointer; font-weight:550; }
.project-view pre { font:12px/1.75 var(--mono); overflow:auto; tab-size:4; }
.project-reference { max-height:550px; padding:15px; background:var(--surface-2); }
.project-codebar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--border); gap:8px; font-size:12px; }
.project-codebar code { font-family:var(--mono); }
.project-editor { height:460px; overflow:hidden; }
.project-console { border-top:1px solid var(--border); padding:16px; }
.project-console pre { margin:12px 0 0; max-height:320px; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--muted); }
.project-console[data-tone=error] pre,.project-error { color:var(--red); }
.project-view>[data-save-warning] { margin:0; padding:14px 28px; overflow-wrap:anywhere; border-bottom:1px solid var(--border); }
.project-console[data-tone=success] pre { color:var(--green); }
.project-view .project-primary { color:var(--bg); background:var(--text); border-color:var(--text); }
.project-runtime { margin:0 0 18px; padding:12px 16px; border:1px solid var(--border); background:var(--surface); border-radius:10px; font-size:13px; }
.project-runtime progress { display:block; width:100%; height:5px; margin-top:8px; accent-color:var(--blue); }
.project-save { min-width:0; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.project-panel { padding:24px; margin-bottom:20px; }
.project-panel h2 { margin:0 0 12px; font-size:21px; }
.project-panel h3 { font-size:15px; margin:0 0 12px; }
.project-panel p { font-size:13px; line-height:1.8; color:var(--muted); }
.project-panel label { display:flex; align-items:center; gap:8px; font-size:13px; }
.project-panel input[type=number] { width:90px; padding:8px; border:1px solid var(--border); background:var(--surface-2); border-radius:8px; }
.project-panel input[type=range] { accent-color:var(--text); width:100%; }
.project-result-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.project-result-grid .project-panel { margin:0; }
.project-view svg { display:block; width:100%; height:auto; font-family:var(--sans); color:var(--text); }
.project-view svg text { fill:currentColor; }
.project-figure-scroll { overflow-x:auto; }
.project-figure-scroll svg { min-width:560px; }
.project-detection-grid { display:grid; grid-template-columns:minmax(240px,1.1fr) minmax(220px,1fr); gap:24px; align-items:start; }
.project-detection-grid>div { min-width:0; }
.project-detection-grid canvas { display:block; width:100%; height:auto; border-radius:6px; cursor:crosshair; }
.project-detection-thumbs { display:flex; gap:8px; overflow:auto; padding:4px 2px 18px; }
.project-detection-thumbs button { padding:5px; min-width:60px; border:2px solid transparent; }
.project-detection-thumbs canvas { display:block; width:52px; height:52px; }
.project-detection-thumbs span { font-size:11px; }
.project-detection-thumbs [aria-pressed=true],.project-cell-picker [aria-pressed=true] { border-color:var(--text); background:var(--surface-3); }
.project-cell-picker { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; max-width:280px; }
.project-cell-picker button { padding:6px; font-size:12px; }
.project-figure-scroll .project-detr-figure { min-width:800px; }
.project-figure-scroll .project-dlo-figure { min-width:900px; }
.project-figure-scroll .project-orb-figure { min-width:1000px; }
.project-orb-chart { min-width:0; overflow-x:auto; }
.project-orb-chart svg { min-width:520px; }
.project-orb-stereo { overflow-x:auto; }
.project-orb-stereo svg { min-width:660px; }
[data-orb-feature] { cursor:pointer; }
[data-orb-queries] table { min-width:600px; }
[data-orb-loop-map],[data-orb-map] { min-width:0; overflow-x:auto; }
[data-orb-loop-map] svg,[data-orb-map] svg { min-width:700px; }
.project-orb-probability .project-actions>label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.project-orb-probability .project-actions input[type=range] { width:150px; }
.project-orb-probability output { min-width:44px; font-variant-numeric:tabular-nums; }
.project-diagram { margin:24px 0; }
.project-diagram .project-actions { justify-content:space-between; }
.project-diagram .project-actions h3 { margin:0; }
.project-orb-dialog { width:min(1240px,calc(100vw - 28px)); max-width:calc(100vw - 28px); max-height:calc(100dvh - 28px); padding:20px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text); overflow:auto; }
.project-orb-dialog::backdrop { background:rgb(0 0 0 / .55); }
.project-orb-dialog>.project-actions { justify-content:space-between; }
.project-diagram .project-figure-scroll:focus-visible,.project-orb-dialog .project-figure-scroll:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.project-panel:has([data-dlo-density]) .project-result-grid>div,
.project-panel:has([data-dlo-error-chart]) .project-result-grid>div { min-width:0; }
.project-dlo-chart,.project-dlo-table { min-width:0; overflow-x:auto; }
.project-dlo-chart svg { min-width:520px; }
.project-dlo-table table { min-width:500px; }
[data-dlo-map-canvas] { display:block; width:100%; height:auto; margin-top:18px; border-radius:8px; }
[data-dlo-camera][hidden] { display:none; }
[data-dlo-camera] label { flex:1 1 220px; white-space:nowrap; }
[data-dlo-camera] input[type=range] { flex:1; min-width:80px; width:auto; }
.project-panel:has([data-dlo-density]) .project-actions label { white-space:nowrap; }
.project-panel:has([data-dlo-density]) .project-actions input[type=range] { width:150px; }
[data-dlo-keyframes] button { font-size:11px; padding:6px 9px; }
[data-dlo-keyframes] [aria-pressed=true] { border-color:var(--blue); background:var(--surface-3); }
[data-detr-queries] [aria-pressed=true] { border-color:var(--text); background:var(--surface-3); }
[data-detr-distribution],[data-detr-convergence] { min-width:0; overflow-x:auto; }
[data-detr-distribution] svg,[data-detr-convergence] svg { min-width:520px; }
[data-detr-attention] { margin-top:12px; }
.project-panel:has([data-detr-distribution]) .project-result-grid>div { min-width:0; }
.project-output-table { width:100%; border-collapse:collapse; color:var(--text); font:12px/1.6 var(--mono); font-variant-numeric:tabular-nums; }
.project-output-table th,.project-output-table td { padding:6px 4px; border-bottom:1px solid var(--border); text-align:right; }
.project-output-table th:first-child { text-align:left; font-family:var(--sans); font-weight:500; }
@media(max-width:800px) { .project-detection-grid { grid-template-columns:1fr; } }
.project-viz-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.project-metrics { display:flex; flex-wrap:wrap; gap:24px; margin:18px 0; }
.project-metrics strong { display:block; font-size:25px; font-variant-numeric:tabular-nums; }
.project-metrics span { font-size:12px; color:var(--muted); }
.project-chart-note { min-height:22px; }
.project-run-state { padding:12px; background:var(--surface-2); border-radius:8px; }
.project-empty { padding:32px 0; color:var(--muted); line-height:1.8; }
.project-catalog { max-width:1040px; padding:64px 32px; margin:auto; }
.project-catalog>h1 { font-size:36px; margin:0 0 14px; }
.project-catalog>p { color:var(--muted); line-height:1.8; }
.project-catalog-card { display:block; border:1px solid var(--border); background:var(--surface); border-radius:18px; padding:28px; margin-top:32px; color:var(--text)!important; }
.project-catalog-card h2 { margin:8px 0; }
.project-catalog-card p { color:var(--muted); line-height:1.8; }
.project-footer { display:flex; justify-content:space-between; gap:16px; margin:24px 0; font-size:13px; }
@media(min-width:1450px) { .project-main { padding:32px 40px; } .project-editor { height:560px; } }
@media(max-width:1100px) { .project-body { grid-template-columns:215px minmax(0,1fr); } .project-workspace { grid-template-columns:1fr; } .project-main { padding:18px; } .project-result-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .project-top { padding:15px; align-items:flex-start; flex-direction:column; gap:12px; } .project-body { display:block; } .project-sidebar { border-right:0; border-bottom:1px solid var(--border); padding:14px; } .project-sidebar nav { display:flex; overflow:auto; } .project-step { min-width:170px; } .project-sidebar .project-actions { padding:10px 0 0; } .project-main { padding:14px; } .project-problem,.project-panel { padding:18px; } .project-viz-grid { grid-template-columns:1fr; } .project-editor { height:410px; } .project-top h1 { font-size:17px; } .project-catalog { padding:32px 18px; } }
