/* Iteria XR presentation palette. Keep status colors semantic and source images untouched. */
:root {
  --ink: #1a1a2e;
  --ink-2: #4a4a6a;
  --muted: #6f6f80;
  --accent: #e8701f;
  --accent-ink: #a84a0c;
  --accent-soft: #fff2e8;
  --paper: #ffffff;
  --pale: #f0f0f2;
  --surface-muted: #f7f7f8;
  --line: rgba(26, 26, 46, .10);
  --line-strong: rgba(26, 26, 46, .18);
  --white: #ffffff;
  --success: #047857;
  --success-soft: #eef9f4;
  --red: #b91c1c;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  color-scheme: light;
}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,.dropzone:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:var(--surface-muted);border-right:1px solid var(--line);padding:32px 20px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;padding:0 8px;font-size:13px;line-height:1.25}.brand strong{font-family:var(--font-sans);font-size:20px;letter-spacing:-.6px}.brand svg{width:35px;fill:none;stroke:var(--accent-ink);stroke-width:1.25;stroke-linejoin:round}.new-job{margin:36px 0 35px;border:1px solid var(--line-strong);background:var(--white);border-radius:7px;text-align:left;padding:12px;color:var(--accent-ink);font-weight:600}.new-job span{font-size:19px;margin-right:9px;font-weight:400}.side-label{font-size:10px;letter-spacing:1.4px;color:var(--muted);padding:0 10px 12px;display:flex;justify-content:space-between}#jobs{overflow-y:auto;flex:1}.job-link{display:block;padding:13px 11px;border-radius:6px;margin-bottom:5px}.job-link.active{background:var(--white)}.job-link strong{font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-link small{color:var(--muted);display:block;font-size:11px;margin-top:7px}.sidebar-bottom{border-top:1px solid var(--line);padding:22px 8px 0;font-size:12px}.sidebar-bottom small{display:block;font-size:10px;color:var(--muted);margin:8px 0}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);margin-right:8px}main{margin-left:242px;min-height:100vh}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px;font-size:12px;color:var(--muted)}.runtime{padding:7px 10px;border:1px solid var(--line);border-radius:20px;background:#fff;font-size:10px;color:var(--muted)}.create-view{max-width:900px;margin:64px auto 80px;padding:0 48px}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:600;color:var(--muted);margin-bottom:16px}h1{font-family:var(--font-sans);font-weight:500;font-size:43px;line-height:1.2;letter-spacing:-1.8px;margin:0 0 20px}.intro{color:var(--muted);line-height:1.7;font-size:14px;max-width:520px;margin-bottom:34px}.dropzone{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:204px;border:1px dashed var(--line-strong);border-radius:10px;background:linear-gradient(135deg,var(--surface-muted),#fff);cursor:pointer;transition:.15s}.dropzone.dragging{background:var(--accent-soft);border-color:var(--accent-ink)}.upload-icon{width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:15px}.upload-icon svg{fill:none;stroke:var(--accent);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2;width:25px}.dropzone strong{font-size:14px;font-weight:500;margin-bottom:7px}.dropzone>span:not(.upload-icon){font-size:12px;color:var(--muted)}.dropzone small{font-size:10px;color:var(--muted);margin-top:16px}.selected-files{padding:0;list-style:none;margin:12px 0 24px}.selected-files li{padding:9px 12px;background:var(--surface-muted);border-radius:5px;margin-bottom:5px;display:flex;align-items:center;gap:10px;font-size:12px}.selected-files .filename{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.selected-files small{color:var(--muted)}.selected-files button{border:0;background:none;color:var(--muted);font-size:17px}.field-label{display:block;font-size:12px;font-weight:500;margin:24px 0 10px}textarea{resize:vertical;width:100%;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--ink);padding:15px 16px;line-height:1.65;outline:none}textarea:focus,input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}textarea::placeholder{color:var(--muted)}.options{margin-top:20px;border-bottom:1px solid var(--line);padding-bottom:20px}.options summary{font-size:12px;cursor:pointer}.options summary span{color:var(--muted);margin-left:10px;font-size:11px}.option-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:13px;margin-top:20px}.option-grid label{font-size:11px;color:var(--muted)}input,select{width:100%;background:#fff;border:1px solid var(--line);border-radius:5px;color:var(--ink);padding:10px;margin-top:8px}.options p{font-size:11px;line-height:1.6;color:var(--muted)}.create-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px}.create-footer>span{font-size:10px;color:var(--muted)}.primary{background:var(--accent-ink);color:white;border:1px solid var(--accent-ink);border-radius:6px;padding:12px 18px;font-size:12px;font-weight:500}.primary span{font-size:17px;margin-left:22px}.primary:hover{background:#303048}.secondary{border:1px solid var(--line-strong);background:white;color:var(--accent-ink);border-radius:5px;padding:9px 13px;font-size:12px}.danger{color:var(--red)}.notice{margin:20px 48px;padding:14px 18px;border:1px solid #efd4bd;background:#fff7ed;color:#9a4c12;border-radius:6px;line-height:1.5}.upload-progress{display:flex;align-items:center;gap:15px;margin-top:18px;color:var(--muted);font-size:12px}progress{accent-color:var(--accent-ink);flex:1}.project-view{padding:43px 48px 60px}.project-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.project-heading .eyebrow{margin-bottom:10px}.project-heading h1{font-size:30px;letter-spacing:-.9px;margin:0}.badge{border-radius:18px;padding:7px 12px;background:var(--pale);font-size:11px;white-space:nowrap}.badge.failed,.badge.interrupted{background:#fef2f2;color:var(--red)}.badge.complete{background:var(--success-soft);color:var(--success)}.project-description{color:var(--muted);max-width:900px;white-space:pre-wrap;line-height:1.65;font-size:13px;margin-top:18px}.project-actions{display:flex;align-items:center;gap:12px;margin:21px 0}.project-actions>span{margin-left:auto;color:var(--muted);font-size:11px}.phases{display:flex;border:1px solid var(--line);border-radius:7px;background:#fff;overflow-x:auto;margin:28px 0 36px}.phase{flex:1;min-width:76px;padding:15px 10px;font-size:10px;color:var(--muted);border-right:1px solid var(--line);text-align:center}.phase:last-child{border:0}.phase b{display:block;font-size:9px;font-weight:400;margin-bottom:5px}.phase.done{color:var(--accent-ink);background:var(--surface-muted)}.phase.active{background:var(--accent-ink);color:#fff}.project-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:35px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.section-heading h2{font-size:15px;font-weight:500;margin:0;letter-spacing:-.3px}.section-heading>span{font-size:10px;color:var(--muted)}.tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:19px}.tabs button{font-size:10px;border:0;background:transparent;color:var(--muted);padding:8px 10px;border-radius:5px}.tabs button.selected{background:var(--accent-soft);color:var(--accent-ink)}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.artifact{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.artifact-image{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:#fff;border-bottom:1px solid var(--line)}.artifact-image img{width:100%;height:100%;object-fit:contain}.artifact-icon{font-size:36px;color:#acacba}.artifact-info{padding:13px}.artifact-info strong{display:block;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis}.artifact-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:9px}.artifact-meta a{color:var(--accent-ink)}.empty-results{padding:65px 25px;border:1px dashed var(--line);border-radius:8px;text-align:center;background:var(--surface-muted)}.empty-results>span{font-size:45px;color:#acacba}.empty-results h3{font-size:14px;font-weight:500;margin:15px 0 7px}.empty-results p{max-width:350px;margin:auto;font-size:12px;color:var(--muted);line-height:1.65}.sources-heading{margin-top:36px}.sources{display:flex;gap:12px;flex-wrap:wrap}.source{width:150px;overflow:hidden}.source video,.source img{width:150px;height:105px;object-fit:contain;border-radius:5px;background:var(--pale)}.source p{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px 0}.activity-panel{border-left:1px solid var(--line);padding-left:26px}.section-heading .live-indicator{font-size:9px;letter-spacing:1.1px;color:var(--muted)}.current-summary{font-size:12px;line-height:1.7;color:var(--ink-2);white-space:pre-wrap;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:21px}.activity{max-height:650px;overflow:auto}.activity-item{border-left:1px solid var(--line-strong);padding:0 0 23px 16px;margin-left:3px;position:relative}.activity-item:before{content:'';position:absolute;left:-3px;top:5px;width:5px;height:5px;border-radius:50%;background:#b7b7c2}.activity-item small{font-size:9px;color:var(--muted)}.activity-item p{font-size:11px;line-height:1.6;color:var(--ink-2);margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.issues{background:#fff7ed;border-radius:6px;padding:12px;color:#9a4c12;font-size:11px;line-height:1.6;margin-bottom:20px}.issues ul{padding-left:16px;margin:5px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}dialog{border:1px solid var(--line);border-radius:12px;max-width:560px;width:calc(100% - 40px);padding:28px;color:var(--ink);box-shadow:0 20px 80px #1a1a2e1a}dialog::backdrop{background:#1a1a2e55}dialog h2{font-size:22px;letter-spacing:-.5px;font-weight:500}dialog p{color:var(--muted);line-height:1.65;font-size:13px}@media(min-width:1600px){.create-view{margin-top:90px}.project-view{max-width:1600px;margin:auto}.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:205px;padding:24px 15px}main{margin-left:205px}.project-layout{grid-template-columns:1fr}.activity-panel{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:25px}.create-view,.project-view{padding-left:30px;padding-right:30px}.topbar{padding:0 30px}.create-footer>span{display:none}}@media(max-width:720px){.sidebar{position:relative;width:100%;padding:17px 20px;display:grid;grid-template-columns:1fr auto;gap:15px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0}.brand strong{font-size:16px}.brand svg{width:28px}.new-job{margin:0;padding:10px;font-size:11px}.sidebar .side-label,.sidebar nav,.sidebar-bottom{display:none}main{margin-left:0}.topbar{height:55px;padding:0 20px;font-size:10px}.create-view{margin-top:38px;padding:0 22px}h1{font-size:34px;letter-spacing:-1.1px}.intro{font-size:13px}.option-grid{grid-template-columns:1fr}.options summary span{display:none}.create-footer{justify-content:flex-end}.project-view{padding:30px 20px}.project-heading{align-items:flex-start}.project-heading h1{font-size:24px}.gallery{grid-template-columns:1fr}.notice{margin:16px 20px}.phases{margin:20px 0 28px}}

.model-dialog{max-width:1080px;width:calc(100% - 48px);padding:24px}.model-dialog model-viewer{width:100%;height:min(68vh,700px);background:#fff}.model-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted);padding-top:15px}

.gallery{align-items:start}
.file-groups:not(:empty){display:grid;gap:12px;margin-top:18px}
.file-group{background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.file-group>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 18px;font-size:13px;font-weight:500;list-style:none}
.file-group>summary::-webkit-details-marker{display:none}
.file-group>summary::before{content:'›';font-size:22px;line-height:1;color:var(--muted);transition:transform .15s}
.file-group[open]>summary::before{transform:rotate(90deg)}
.file-group>summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.file-group-count{margin-left:auto;color:var(--muted);font-size:11px;font-weight:400}
.file-list{border-top:1px solid var(--line)}
.file-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line)}
.file-row:last-child{border-bottom:0}
.file-type{display:flex;align-items:center;justify-content:center;min-height:34px;padding:5px;border-radius:5px;background:var(--pale);color:var(--accent-ink);font-size:10px;letter-spacing:.4px}
.file-info{min-width:0}
.file-title{font-size:13px;font-weight:500;line-height:1.5;display:block;overflow-wrap:anywhere}
.file-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.file-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:16px;font-size:11px;color:var(--accent-ink)}
.file-open{font-weight:500}
.file-title:hover,.file-actions a:hover,.artifact-meta a:hover{text-decoration:underline}
.artifact-unavailable .file-row{grid-template-columns:40px minmax(0,1fr);padding:14px}
.artifact-unavailable .file-actions{grid-column:2;justify-content:flex-start}
.user-inputs{margin-top:22px;border:1px solid var(--line);border-radius:8px;padding:0 18px;background:#fff}
.user-inputs>summary,.input-description>summary,.stage-inputs>summary,.project-status>summary,.recorded-role>summary{cursor:pointer;font-size:12px;padding:15px 0}
.user-inputs>summary>span,.stage-inputs>summary>span{color:var(--muted);font-size:11px;margin-left:12px;font-weight:400}
.user-inputs .sources{padding-top:3px}
.input-description .project-description{margin:0 0 18px;max-height:260px;overflow:auto}
.input-description{border-top:1px solid var(--line);margin-top:8px}
.phases{margin-bottom:26px}
button.phase{border:0;border-right:1px solid var(--line);background:#fff;color:var(--ink-2);position:relative;font:inherit;font-size:11px;padding:16px 10px}
button.phase.done{color:var(--accent-ink);background:var(--surface-muted)}
button.phase.active{color:var(--accent-ink);background:var(--accent-soft)}
button.phase.active b::after{content:' ·';color:var(--accent)}
button.phase.selected{color:#fff;background:var(--accent-ink)}
button.phase.selected b::after{color:#fff}
.stage-heading{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:26px}
.stage-heading h2{font-family:var(--font-sans);font-size:24px;font-weight:500;margin:0 0 8px;letter-spacing:-.6px}
.stage-heading p,.stage-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.stage-timing{text-align:right;font-size:12px;white-space:nowrap;color:var(--accent-ink)}
.stage-timing small{display:block;white-space:normal;font-size:10px;color:var(--muted);max-width:250px;line-height:1.7;margin-top:7px}
.stage-inputs{border:1px solid var(--line);background:white;border-radius:8px;overflow:hidden;margin-bottom:26px}
.stage-inputs>summary{padding:16px 18px;font-weight:500}
.stage-inputs .file-list{max-height:290px;overflow:auto}
.stage-inputs .stage-hint{padding:16px 18px}
.description-link,.receipt-link{display:block;padding:14px 18px;font-size:12px;color:var(--accent-ink)}
.description-link:hover,.receipt-link:hover{text-decoration:underline}
.empty-results{padding:24px;text-align:left}
.empty-results p{max-width:none;margin:0}
.recorded-files{margin-top:22px}
.recorded-files .stage-hint{padding:0 18px 14px}
.recorded-role>summary{padding:15px 18px;border-top:1px solid var(--line)}
.recorded-role>.secondary{margin:12px 18px}
.project-status{margin-top:22px;border-top:1px solid var(--line)}
.project-status .live-indicator{font-size:9px;color:var(--muted);margin-left:10px}
.activity-item time{font-size:10px;color:var(--muted)}
#unassigned-files{margin-top:18px}
#stage-panel[aria-busy=true] .project-layout{opacity:.55;pointer-events:none}
@media(max-width:720px){.stage-heading{display:block}.stage-timing{text-align:left;margin-top:15px}.stage-timing small{max-width:none}.stage-inputs>summary>span{display:block;margin:5px 0 0 15px}}
@media(max-width:720px){.file-row{grid-template-columns:40px minmax(0,1fr);gap:10px;padding:14px}.file-actions{grid-column:2;justify-content:flex-start}.file-group>summary{padding:14px}}

.run-origin{font-size:12px;color:var(--muted);line-height:1.6}.run-origin a{color:var(--accent-ink);text-decoration:underline;margin-right:14px}

/* Shared presentation language with the Iteria XR demo. */
.beta-access { margin: 0 48px 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-muted); color: var(--ink-2); font-size: 12px; }
.beta-access p { margin: 0 0 12px; line-height: 1.6; }
.beta-access p:last-child { margin: 12px 0 0; }
.beta-access select { max-width: 320px; }
@media(max-width:1100px) { .beta-access { margin-left: 30px; margin-right: 30px; } }
@media(max-width:720px) { .beta-access { margin-left: 20px; margin-right: 20px; } }
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
::selection { background: var(--accent-soft); color: var(--ink); }
.sidebar { padding-top: 28px; }
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-name { font-size: 29px; font-weight: 650; letter-spacing: -.045em; line-height: 1.2; }
.brand-product { color: var(--muted); font-size: 11px; letter-spacing: .01em; }
.new-job { margin-top: 32px; border-radius: 12px; font-size: 12px; color: var(--ink); transition: border-color .18s, background .18s; }
.new-job span { color: var(--accent); }
.new-job:hover { border-color: var(--accent); background: var(--white); }
.side-label { font-size: 9px; letter-spacing: .16em; }
.job-link { border: 1px solid transparent; border-radius: 12px; transition: background .18s, border-color .18s; }
.job-link:hover { background: var(--white); border-color: var(--line); }
.job-link.active { border-color: var(--line); box-shadow: inset 3px 0 var(--accent); }
.job-link strong { font-size: 12px; }
.job-link small { line-height: 1.5; }
.topbar { height: 80px; border-bottom: 0; }
#breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .process-link { flex-shrink: 0; border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: 10px; color: var(--ink-2); }
.topbar .process-link:hover { background: var(--surface-muted); text-decoration: none; }
.create-view { max-width: 980px; margin-top: 48px; }
.eyebrow { letter-spacing: .18em; }
h1 { font-weight: 450; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -.045em; }
.intro { font-size: 15px; line-height: 1.7; max-width: 540px; margin-bottom: 30px; }
.dropzone { min-height: 208px; background: var(--white); border-radius: 20px; border-style: solid; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); }
.upload-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-muted); border: 0; }
.upload-icon svg { stroke-width: 1.25; }
.dropzone strong { font-size: 15px; }
.dropzone small { font-size: 11px; }
.selected-files li { border-radius: 10px; padding: 10px 14px; }
.field-label { font-size: 13px; }
textarea { border-radius: 14px; padding: 16px 18px; font-size: 13px; }
input, select { border-radius: 10px; }
.options { margin-top: 22px; }
.options summary { color: var(--ink-2); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 22px; border-radius: 12px; background: var(--ink); border-color: var(--ink); padding: 12px 18px; font-size: 13px; transition: background .18s; }
.primary span { display: grid; place-items: center; margin-left: 0; width: 26px; height: 26px; border: 1px solid #ffffff4d; border-radius: 50%; font-size: 16px; }
.secondary { border-radius: 10px; padding: 10px 14px; color: var(--ink-2); }
.secondary:hover { background: var(--surface-muted); border-color: var(--line-strong); }
.secondary.danger { color: var(--red); }
.process-link { color: var(--ink-2); }
.process-link span { color: var(--accent-ink); }
.process-link:hover { color: var(--accent-ink); }
.project-view { padding-top: 30px; }
.project-heading h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 450; letter-spacing: -.04em; }
.badge { border: 1px solid var(--line); font-size: 11px; padding: 6px 12px; }
.project-actions { flex-wrap: wrap; }
.user-inputs, .stage-inputs, .file-group, .empty-results { border-radius: 16px; }
.user-inputs { padding: 0 20px; }
.source img, .source video { border-radius: 10px; }
.workflow-heading h2, .section-heading h2 { font-size: 16px; letter-spacing: -.02em; }
.workflow-map { border-radius: 20px; }
.flow-card { border-radius: 12px; box-shadow: none; }
.flow-card[data-state=completed] .flow-status { color: var(--success); }
.flow-card[data-state=active] .flow-status { color: var(--accent-ink); }
.flow-line.selected-input { stroke: var(--accent); }
.flow-card[aria-selected=true] { background: var(--ink); border-color: var(--ink); box-shadow: 0 4px 12px #1a1a2e14; }
.flow-card[aria-selected=true] .flow-number { color: #ffb37f; }
.flow-card[aria-selected=true] .flow-status { color: #e7e7ed; }
button.phase.selected { background: var(--ink); }
.stage-heading h2 { font-size: 27px; font-weight: 450; letter-spacing: -.035em; }
.stage-timing { color: var(--ink-2); }
.tabs { gap: 6px; }
.tabs button { border-radius: 9px; padding: 9px 12px; font-size: 11px; }
.tabs button:hover { background: var(--surface-muted); color: var(--ink); }
.tabs button.selected { background: var(--pale); color: var(--ink); }
.artifact { border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.artifact:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px #1a1a2e08; }
.artifact-info { padding: 17px 18px; }
.artifact-info strong { font-size: 13px; }
.artifact-meta { font-size: 11px; margin-top: 12px; }
.file-group>summary:hover { background: var(--surface-muted); }
.file-type { border-radius: 8px; color: var(--ink-2); }
.current-summary { color: var(--ink-2); }
.activity-item:before { background: var(--accent); }
.notice, .issues { border-radius: 12px; }
dialog { border-radius: 20px; padding: 30px; box-shadow: 0 24px 80px #1a1a2e26; }
dialog h2 { font-weight: 450; letter-spacing: -.035em; }
:where(button, a, summary, .dropzone):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media(min-width:1600px) { .create-view { margin-top: 64px; } }
@media(max-width:1100px) { .brand-name { font-size: 27px; } }
@media(max-width:720px) {
  .sidebar { align-items: center; padding: 18px 20px; gap: 12px; }
  .brand-name { font-size: 25px; }
  .brand-product { font-size: 10px; }
  .new-job { margin: 0; padding: 9px 11px; font-size: 10px; }
  .new-job span { margin-right: 3px; font-size: 16px; }
  .topbar { height: 64px; gap: 10px; }
  .topbar .process-link { font-size: 10px; padding: 7px 9px; }
  .create-view { margin-top: 25px; }
  h1 { font-size: clamp(32px, 8.6vw, 42px); }
  .intro { font-size: 13px; }
  .dropzone { min-height: 200px; padding: 20px; text-align: center; }
  .dropzone>span:not(.upload-icon) { font-size: 11px; }
  textarea { font-size: 16px; }
  .create-footer { flex-wrap: wrap; gap: 18px; }
  .create-footer>.process-link { width: 100%; }
  .primary { width: 100%; }
  .dialog-actions .primary { width: auto; }
  .project-heading { flex-wrap: wrap; gap: 12px; }
  .project-heading h1 { font-size: 28px; }
  .project-view { padding-top: 20px; }
  .activity-panel { padding-top: 20px; }
  .model-footer { flex-wrap: wrap; }
  dialog { padding: 24px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* A single composer for the reconstruction request and its source attachments. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.projects-toggle { display:none; }
.side-label { text-transform:uppercase; }

/* New reconstruction: a soft gray page with white objects on it. Neutral grays only; the composer carries the weight. */
:root:has(#create-view:not([hidden])) { background:#fafafa; }
body:has(#create-view:not([hidden])) {
  --ink:#1c1c1c; --ink-2:#3a3a3a; --muted:#6b6b6b; --faint:#9a9a9a;
  --accent:#4a4a4a; --accent-ink:#333333; --accent-soft:#f0f0f0;
  --surface-muted:#f5f5f5; --pale:#ebebeb; --line:#e6e6e6; --line-strong:#d6d6d6;
  --bench:#fafafa; --side:242px;
  background:var(--bench); color:var(--ink);
}
body:has(#create-view:not([hidden])) ::selection { background:#d9d9d9; color:var(--ink); }
body:has(#create-view:not([hidden])) :is(button,a):focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
body:has(#create-view:not([hidden])) .topbar { display:none; }

/* Sidebar: the same structure as on project pages, set quieter. */
body:has(#create-view:not([hidden])) .sidebar { padding-bottom:0; background:var(--bench); border-right-color:var(--line); }
body:has(#create-view:not([hidden])) .brand-name { color:var(--ink); }
body:has(#create-view:not([hidden])) .brand-product { color:var(--muted); }
body:has(#create-view:not([hidden])) .new-job { display:flex; align-items:center; gap:10px; min-height:40px; margin:30px 0 28px; padding:0 13px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink-2); font-size:13px; font-weight:500; white-space:nowrap; box-shadow:0 1px 2px #0000000a; transition:border-color .16s, box-shadow .16s, color .16s; }
body:has(#create-view:not([hidden])) .new-job span { margin:0; color:var(--muted); font-size:17px; font-weight:400; line-height:1; }
body:has(#create-view:not([hidden])) .new-job:hover { border-color:var(--line-strong); background:#fff; color:var(--ink); box-shadow:0 1px 3px #00000014; }
body:has(#create-view:not([hidden])) .nav-link { padding:9px 13px; border:0; color:var(--ink-2); font-size:13px; }
body:has(#create-view:not([hidden])) .new-job + .nav-link { margin:-22px 0 24px; }
body:has(#create-view:not([hidden])) .nav-link svg { stroke:var(--muted); }
body:has(#create-view:not([hidden])) .nav-link:hover { background:#0000000b; }
body:has(#create-view:not([hidden])) .side-label { padding:0 8px 8px; color:var(--muted); font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; }
body:has(#create-view:not([hidden])) .side-label span { font-weight:400; font-variant-numeric:tabular-nums; }
body:has(#create-view:not([hidden])) .sidebar:has(#jobs:empty) .side-label { display:none; }
body:has(#create-view:not([hidden])) #jobs { padding:0 0 40px; scrollbar-width:thin; scrollbar-color:#00000024 transparent; -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent); mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent); }
body:has(#create-view:not([hidden])) .job-link { margin:0 0 2px; padding:8px; border:0; border-radius:10px; }
body:has(#create-view:not([hidden])) .job-link:hover { background:#0000000b; }
body:has(#create-view:not([hidden])) .job-link strong { color:var(--ink-2); font-size:13px; font-weight:460; }
body:has(#create-view:not([hidden])) .job-link small { margin-top:1px; color:var(--muted); font-size:12px; line-height:1.45; }
body:has(#create-view:not([hidden])) .job-link:focus-visible { outline-offset:-2px; }
body:has(#create-view:not([hidden])) .job-blocker { display:none; }

/* A message about the request appears above the page without moving it. */
body:has(#create-view:not([hidden])) .notice { position:fixed; z-index:5; top:20px; left:calc(var(--side) + (100% - var(--side)) / 2); transform:translateX(-50%); width:max-content; max-width:min(560px,calc(100% - var(--side) - 48px)); margin:0; padding:10px 16px 10px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); font-size:13.5px; line-height:1.45; box-shadow:0 1px 2px #0000000a,0 12px 32px -10px #00000029; }
body:has(#create-view:not([hidden])) .notice::before { content:""; display:inline-block; width:6px; height:6px; margin:0 10px 2px 0; border-radius:50%; background:#c2410c; vertical-align:middle; }

/* The request. Its top edge is fixed to the viewport so the heading holds still while the composer grows. */
.create-view.composer-view { width:100%; max-width:820px; margin:0 auto; padding:clamp(64px,calc(44vh - 168px),320px) 44px 72px; }
.composer-view h1 { margin:0 auto 32px; max-width:20em; color:var(--ink); font-size:clamp(28px,calc(1.6vw + 19px),44px); font-weight:440; line-height:1.12; letter-spacing:-.028em; text-align:center; text-wrap:balance; }
.composer { position:relative; border:1px solid #00000014; border-radius:26px; padding:12px; background:#fff; box-shadow:0 1px 2px #0000000a,0 14px 44px -16px #0000001f; transition:border-color .16s, box-shadow .16s; }
.composer:focus-within { border-color:#0000002e; box-shadow:0 1px 2px #0000000d,0 18px 52px -16px #0000002b; }
.composer.dragging { border:1px dashed #8a8a8a; }
.composer.dragging::after { content:"Drop files to attach"; position:absolute; inset:0; display:grid; place-items:center; border-radius:inherit; background:#fafafaf2; color:var(--ink-2); font-size:15px; font-weight:500; pointer-events:none; }
.composer textarea { display:block; min-height:68px; max-height:200px; resize:none; border:0; border-radius:0; background:transparent; box-shadow:none; padding:8px 12px 12px; color:var(--ink); font-size:16px; line-height:1.5; }
.composer textarea:focus { border:0; box-shadow:none; }
.composer textarea::placeholder { color:var(--muted); opacity:1; }
.composer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.attach-files,.composer-submit { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; border-radius:999px; font-size:14px; font-weight:500; white-space:nowrap; transition:background-color .14s, border-color .14s, color .14s; }
.attach-files { padding:0 15px 0 11px; border:1px solid var(--line); background:#fff; color:var(--ink-2); }
.attach-files:hover:not(:disabled) { border-color:var(--line-strong); background:var(--surface-muted); color:var(--ink); }
.attach-files svg,.composer-submit svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.attach-files svg { color:var(--muted); }
.composer-submit { padding:0 13px 0 17px; border:0; background:var(--ink); color:#fff; }
.composer-submit:hover:not(:disabled) { background:#000; }
.composer-submit:disabled { cursor:default; opacity:1; background:#f2f2f2; color:var(--faint); }

/* Attached files */
.composer .selected-files { display:flex; flex-wrap:wrap; gap:8px; max-height:172px; margin:0 0 6px; padding:0; overflow:auto; }
.composer .selected-files:empty { display:none; }
.composer .attachment-chip { display:flex; align-items:center; gap:10px; width:min(226px,100%); margin:0; padding:5px 6px 5px 5px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.attachment-thumbnail,.attachment-type { width:36px; height:36px; flex:none; border-radius:9px; object-fit:cover; }
.attachment-type { display:grid; place-items:center; background:var(--surface-muted); color:var(--muted); font-size:9.5px; font-weight:600; letter-spacing:.03em; }
.attachment-info { flex:1; min-width:0; }
.attachment-info .filename { display:block; color:var(--ink-2); font-size:13px; font-weight:500; line-height:1.35; }
.attachment-info small { display:block; margin-top:1px; color:var(--muted); font-size:11px; line-height:1.3; }
.composer .attachment-remove { display:grid; place-items:center; flex:none; width:24px; height:24px; padding:0; border-radius:50%; color:var(--faint); font-size:16px; line-height:1; transition:background-color .14s, color .14s; }
.composer .attachment-remove:hover:not(:disabled) { background:var(--pale); color:var(--ink); }

/* Status and upload progress share the composer's text edge. */
.composer-status { margin:12px 0 0; padding:0 25px; color:var(--muted); font-size:13px; text-align:start; }
.composer-status:empty { margin:0; }
.composer[aria-busy="true"] + .composer-status { position:absolute; width:1px; height:1px; margin:0; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.composer-view .upload-progress { gap:14px; margin:14px 0 0; padding:0 25px; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.composer-view progress { flex:1; height:4px; border:0; border-radius:99px; background:var(--pale); overflow:hidden; -webkit-appearance:none; appearance:none; }
.composer-view progress::-webkit-progress-bar { background:var(--pale); }
.composer-view progress::-webkit-progress-value { border-radius:99px; background:var(--ink); transition:width .2s; }
.composer-view progress::-moz-progress-bar { border-radius:99px; background:var(--ink); }

/* Guidance: two numbered notes under the composer, not a second card. */
.upload-guidance { margin:30px 0 0; padding:0 25px; border:0; border-radius:0; background:none; color:var(--muted); text-align:start; }
.upload-guidance h2 { margin:0 0 12px; color:var(--muted); font-size:13px; font-weight:500; letter-spacing:0; }
.capture-tips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 44px; margin:0; padding:0; list-style:none; counter-reset:tip; font-size:14px; line-height:1.55; }
.capture-tips li { position:relative; padding-left:22px; counter-increment:tip; }
.capture-tips li::before { content:counter(tip); position:absolute; top:0; left:0; color:var(--muted); font-weight:500; font-variant-numeric:tabular-nums; }
.capture-tips strong { display:block; margin-bottom:2px; color:var(--ink-2); font-weight:500; }

.source-document { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:150px; height:105px; border-radius:10px; border:1px solid var(--line); background:var(--surface-muted); color:var(--ink-2); }
.source-document span { font-size:16px; font-weight:500; }
.source-document small { font-size:11px; color:var(--accent-ink); }
@media(max-width:1100px) {
  body:has(#create-view:not([hidden])) { --side:205px; }
  body:has(#create-view:not([hidden])) .new-job { gap:8px; padding:0 11px; }
  .create-view.composer-view { padding-left:32px; padding-right:32px; }
}
@media(max-width:720px) {
  body:has(#create-view:not([hidden])) { --side:0px; }
  body:has(#create-view:not([hidden])) main { min-height:0; }
  body:has(#create-view:not([hidden])) .sidebar { display:flex; flex-flow:row wrap; align-items:center; gap:10px; padding:12px 16px; border-bottom-color:var(--line); }
  body:has(#create-view:not([hidden])) .brand { margin-right:auto; }
  body:has(#create-view:not([hidden])) .brand-name { font-size:23px; }
  body:has(#create-view:not([hidden])) .brand-product { font-size:11px; }
  body:has(#create-view:not([hidden])) .sidebar .new-job { display:none; }
  body:has(#create-view:not([hidden])) .nav-link,
  body:has(#create-view:not([hidden])) .new-job + .nav-link { margin:0; padding:10px; border-radius:50%; }
  body:has(#create-view:not([hidden])) .projects-toggle { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 12px 0 15px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink-2); font-size:14px; font-weight:500; box-shadow:0 1px 2px #0000000a; }
  .projects-toggle svg { width:15px; height:15px; fill:none; stroke:var(--muted); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform .18s; }
  .projects-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
  body:has(#create-view:not([hidden])) .projects-toggle[aria-expanded="true"] ~ #jobs { display:block; flex:none; width:calc(100% + 16px); max-height:44vh; margin:0 -8px; padding:2px 0 30px; }
  body:has(#create-view:not([hidden])) .notice { position:static; transform:none; width:auto; max-width:none; margin:12px 16px 0; }
  .create-view.composer-view { padding:clamp(32px,7vh,72px) 16px 44px; }
  .composer-view h1 { max-width:12em; margin-bottom:24px; font-size:clamp(27px,7.6vw,32px); }
  .composer { padding:10px; border-radius:24px; }
  .composer textarea { padding:8px 9px 12px; }
  .composer .attachment-chip { width:100%; }
  .attach-files,.composer-submit { min-height:44px; }
  .attach-files { padding:0 17px 0 13px; }
  .composer-submit { padding:0 15px 0 19px; }
  .composer-status,.composer-view .upload-progress,.upload-guidance { padding-left:20px; padding-right:20px; }
  .upload-guidance { margin-top:26px; }
  .capture-tips { grid-template-columns:1fr; }
}
@media(max-width:360px) {
  .composer-toolbar { gap:8px; }
  .attach-files,.composer-submit { gap:6px; font-size:13.5px; }
  .attach-files { padding:0 13px 0 10px; }
  .composer-submit { padding:0 12px 0 15px; }
}
@media(prefers-reduced-motion:reduce) { .composer,.composer-submit,.attach-files,.projects-toggle svg { transition:none; } }

/* A stopped project explains the blocker before inputs, files or activity. */
.job-attention { margin:24px 0; padding:20px 24px; border:1px solid #ead7c8; border-left:3px solid var(--accent); border-radius:12px; background:#fffaf6; }
.attention-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; }
.attention-heading h2 { margin:0; font-size:16px; font-weight:600; }
.attention-heading span { font-size:11px; color:var(--muted); }
.job-attention p,.job-attention li { font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.job-attention>p { margin:12px 0 0; }
.job-attention ul { padding-left:20px; }
.attention-next { margin-top:16px; padding-top:14px; border-top:1px solid #ead7c8; }
.attention-next h3 { margin:0; font-size:11px; color:var(--muted); font-weight:600; }
.attention-next p { margin:7px 0 0; }
.job-attention .attention-continuation { color:var(--muted); font-size:11px; }
.job-link .job-blocker { margin-top:6px; font-size:10px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media(max-width:720px) { .job-attention { padding:16px; } }
