.crew-job-quote { --cjq-bg: var(--material-surface, #fff); --cjq-ink: var(--material-ink, #172b2b); --cjq-muted: var(--material-secondary, #42575b); color: var(--cjq-ink); background: var(--cjq-bg); display: grid; gap: 18px; min-width: 0; font-size: 16px; line-height: 1.5; container-type: inline-size; }
.crew-job-quote *, .cjq-viewer * { box-sizing: border-box; letter-spacing: 0; }
.crew-job-quote :is(h2, h3, p, dl, ul) { margin: 0; }
.crew-job-quote h2 { font-size: 20px; line-height: 1.3; }
.crew-job-quote h3, .crew-job-quote legend { font-size: 16px; font-weight: 700; }
.crew-job-quote :is(p, dt, dd, strong, output, h2, h3) { overflow-wrap: anywhere; }
.cjq-header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.cjq-header > div { min-width: 0; }
.cjq-header p, .cjq-muted { color: var(--cjq-muted); }
.cjq-description { white-space: break-spaces; }
.cjq-evidence { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-job-quote :is(button, input, select, textarea) { font-family: inherit; font-size: 16px; line-height: 1.5; max-width: 100%; min-width: 0; border-radius: 6px; }
.crew-job-quote button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line, #acbdbb); background: var(--cjq-bg); color: var(--cjq-ink); white-space: normal; cursor: pointer; }
.crew-job-quote button:disabled { cursor: default; opacity: .65; }
.crew-job-quote .cjq-icon { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font-size: 24px; }
.crew-job-quote .cjq-primary { background: #006568; color: #fff; border-color: #006568; }
.crew-job-quote label { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
.crew-job-quote :is(input, textarea, select) { width: 100%; padding: 10px; border: 1px solid var(--line, #acbdbb); background: var(--cjq-bg); color: var(--cjq-ink); }
.crew-job-quote textarea { min-height: 96px; resize: vertical; }
.crew-job-quote fieldset { min-width: 0; margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line, #acbdbb); display: grid; gap: 14px; }
.crew-job-quote legend { padding: 0 8px 0 0; color: var(--cjq-ink); }
.cjq-fields, .cjq-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.cjq-totals dd { margin: 0; font-size: 18px; font-weight: 700; }
.crew-job-quote :is(.cjq-totals dd, .cjq-choice strong, output) { font-variant-numeric: tabular-nums; white-space: normal; text-overflow: clip; overflow: visible; }
.crew-job-quote .cjq-totals > div { min-width: 0; }
.crew-job-quote :is(button:not(.cjq-icon), input:not([type="radio"]):not([type="checkbox"]), select) { min-height: 48px; }
.cjq-material-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 10px; align-items: end; margin-bottom: 14px; }
.cjq-material-row > label:first-child { grid-column: 1 / -1; }
.cjq-materials { padding: 0; list-style: none; display: grid; gap: 8px; }
.cjq-materials li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line, #acbdbb); padding: 10px 0; }
.cjq-summary, .cjq-private { display: grid; gap: 12px; }
.cjq-private dd { margin: 0; }
.cjq-status { font-weight: 700; }
.crew-job-quote .cjq-choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; padding: 12px 0; }
.cjq-choice input { width: 18px; height: 18px; margin: 3px 0 0; }
.cjq-choice strong { display: block; }
.crew-job-quote [data-cjq-feedback][role="alert"] { border-left: 3px solid #ca553b; padding: 8px 12px; }
.crew-job-quote :focus-visible, .cjq-viewer :focus-visible { outline: 3px solid #139ba1; outline-offset: 3px; }
.cjq-viewer[open] { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 0; background: #080b0d; overflow: hidden; touch-action: pan-y pinch-zoom; }
.cjq-viewer img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cjq-viewer-close { position: absolute; right: 12px; top: max(12px, env(safe-area-inset-top)); width: 44px; height: 44px; border: 1px solid #fff; border-radius: 50%; background: #15191b; color: #fff; font: 700 16px sans-serif; cursor: pointer; }
@media (max-width: 600px) { .cjq-material-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cjq-material-row > button { grid-column: 2; justify-self: end; } }
@container (max-width: 440px) {
  .crew-job-quote .cjq-totals { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .crew-job-quote .cjq-totals dd { font-size: 22px; }
  .crew-job-quote .cjq-material-row { grid-template-columns: minmax(0, 1fr); }
  .crew-job-quote .cjq-material-row > button { grid-column: 1; justify-self: end; }
  .crew-job-quote .cjq-primary { width: 100%; }
}
