:root {
  color-scheme: light;
  --redwood-red: #c74634;
  --redwood-bg: #f8f4ef;
  --card: #fffefa;
  --ink: #1f1f1f;
  --muted: #5f5a55;
  font-family: "Oracle Sans", "Helvetica Neue", Arial, sans-serif;
}
body { margin: 0; background: var(--redwood-bg); color: var(--ink); }
.app-shell { min-height: 100vh; }
.app-header { background: #312d2a; color: white; padding: 28px 40px; border-bottom: 5px solid var(--redwood-red); }
.app-header h1 { margin: 0 0 8px; font-size: 32px; }
.app-header p { margin: 0; color: #e6e0da; max-width: 980px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(320px, 1fr)); gap: 20px; padding: 24px 40px; }
.card { background: var(--card); border: 1px solid #ded8d0; border-radius: 14px; box-shadow: 0 6px 18px rgba(49,45,42,.08); padding: 20px; }
.card.wide { grid-column: 1 / -1; }
.card h2 { margin-top: 0; color: #3a3632; }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-weight: 600; }
input { box-sizing: border-box; width: 100%; border: 1px solid #c8c1b8; border-radius: 8px; padding: 10px 12px; font-size: 15px; background: white; }
button { margin-top: 16px; margin-right: 8px; border: 0; border-radius: 8px; padding: 10px 16px; background: var(--redwood-red); color: white; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(.95); }
button.secondary { background: #6f6259; }
button.small { margin-top: 0; padding: 7px 10px; font-size: 13px; }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.documents-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.documents-header h3 { margin: 0; color: #3a3632; }
.documents-header button { margin-top: 0; }
.document-rows { display: grid; gap: 14px; margin-top: 12px; }
.document-row { border: 1px solid #ded8d0; border-radius: 12px; background: #fbf7f1; padding: 14px; }
.job-documents { margin-top: 16px; overflow-x: auto; }
.documents-table { width: 100%; border-collapse: collapse; font-size: 14px; background: white; border: 1px solid #ded8d0; border-radius: 10px; overflow: hidden; }
.documents-table th, .documents-table td { border-bottom: 1px solid #ede6de; padding: 8px 10px; text-align: left; vertical-align: top; }
.documents-table th { background: #f1e9df; color: #3a3632; }
.documents-table tr:last-child td { border-bottom: 0; }
pre { overflow: auto; background: #211f1d; color: #f8f4ef; padding: 14px; border-radius: 10px; min-height: 120px; }
@media (max-width: 820px) { .app-grid { grid-template-columns: 1fr; padding: 16px; } .app-header { padding: 22px 20px; } }
