:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #24251c;
  background: #f3f2ed;
  --olive: #4e4a2c;
  --green: #768c3a;
  --pale: #e8eedc;
  --line: #d4d2c6;
  --warning: #fff4cf;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 980px; margin: 0 auto; padding: 36px 22px 56px; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; }
.lede { margin: 10px 0 0; color: #626255; }
.privacy-badge { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cfd8b8; border-radius: 999px; background: #f7faef; color: #4d5d2d; font-size: 13px; white-space: nowrap; }
.privacy-badge span { width: 9px; height: 9px; border-radius: 50%; background: #719a2b; }
.card { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px #34351f0c; }
h2 { margin: 0 0 20px; font-size: 20px; }
h3 { margin: 0 0 6px; font-size: 16px; }
p { line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.field small { color: #737366; font-weight: 400; line-height: 1.4; }
select, input[type="file"] { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #aaa99e; border-radius: 7px; background: #fff; font: inherit; }
button, .download { border: 0; border-radius: 8px; padding: 11px 17px; font-weight: 800; font-size: 14px; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { margin-top: 22px; background: var(--olive); color: white; }
.secondary { border: 1px solid #aaa99e; background: white; color: #34352b; }
.tertiary { padding: 7px 10px; border: 1px solid #cbc9bd; background: #fff; color: #44453a; font-size: 12px; }
.tertiary.danger { color: #8b3027; }
.file-list-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-top: 22px; }
.file-list-heading h3 { margin: 0; }
.file-list-heading span { color: #6d6d61; font-size: 13px; }
.file-list { display: grid; gap: 7px; margin-top: 9px; }
.file-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #deddd4; border-radius: 8px; background: #fafaf7; }
.file-row.failed { border-color: #e2b4ae; background: #fff5f3; }
.file-row.success .file-state { color: #4f8124; }
.file-row.failed .file-state { color: #a83328; }
.file-state { font-weight: 900; text-align: center; }
.file-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-info span { color: #707064; font-size: 12px; }
.file-actions { display: flex; gap: 6px; }
.crop-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.crop-copy { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.crop-copy p { margin: 0 0 14px; color: #69695c; max-width: 670px; }
.crop-file-name { display: block; margin-bottom: 5px; color: var(--green); font-size: 13px; }
.crop-actions { display: flex; gap: 8px; white-space: nowrap; }
#crop-canvas { display: block; max-width: 100%; border: 1px solid #99988e; background: #efeee9; cursor: crosshair; touch-action: none; }
.crop-status { margin: 8px 0 0; color: #706f62; font-size: 13px; }
.incomplete-panel { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 11px 13px; border: 1px solid #e4c868; border-radius: 8px; background: var(--warning); font-size: 13px; line-height: 1.4; }
.status-card { display: flex; align-items: center; gap: 13px; }
.status-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: #9a9a91; }
.status-dot.busy { background: #e09b27; animation: pulse 1s infinite alternate; }
.status-dot.success { background: #69a62e; }
.status-dot.error { background: #be3d2d; }
.status-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.status-text span { color: #65655a; }
.download { margin-left: auto; background: var(--pale); color: #2f3a1d; text-decoration: none; }
.warnings { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #e4c868; border-radius: 8px; background: var(--warning); white-space: pre-line; }
.project-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 18px; }
.summary-item { padding: 9px 10px; border: 1px solid #deddd4; border-radius: 8px; background: #f8f8f4; }
.summary-item strong { display: block; font-size: 19px; }
.summary-item span { color: #6a6b60; font-size: 11px; }
#occupancy-summary { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #e2e1d9; text-align: left; }
th { background: #f4f3ed; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.fixture-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fixture-chip { min-width: 116px; padding: 10px 12px; border: 1px solid #d7ddc9; border-radius: 8px; background: #f7f9f2; }
.fixture-chip span { display: block; color: #68695f; font-size: 12px; }
.fixture-chip strong { display: block; margin-top: 4px; font-size: 21px; }
footer { margin-top: 20px; color: #747469; font-size: 12px; }
.app-version { margin: 5px 0 0; color: #929287; font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }

@media (max-width: 720px) {
  .hero, .crop-copy { flex-direction: column; }
  .privacy-badge { align-self: flex-start; }
  .field-grid { grid-template-columns: 1fr; }
  .crop-actions { flex-wrap: wrap; }
  .file-row { grid-template-columns: 22px minmax(0, 1fr); }
  .file-actions { grid-column: 2; }
  .status-card { align-items: flex-start; flex-wrap: wrap; }
  .download { margin-left: 25px; }
}
/* Revit-only review; existing file-import layout is unchanged. */
.revit-table-scroll { overflow-x: auto; margin-top: 16px; }
.revit-review input[type="text"] { min-width: 140px; min-height: 44px; width: 100%; padding: 9px; border: 1px solid #aaa99e; border-radius: 7px; background: white; font: inherit; color: inherit; }
.revit-review :is(input, select, button):focus-visible { outline: 2px solid #245bdb; outline-offset: 2px; }
.revit-review input[type="checkbox"] { width: 24px; height: 24px; margin: 10px; }
.revit-review select { min-height: 44px; }
