/* pipefab.bid page styles. Linked, not a <style> element: the baseline CSP
   allows style attributes and blocks style elements. The shell owns the
   column (--pqs-page-gutter on #pqs-main). Do not add a second horizontal inset. */
:root { color-scheme: light; --teal: #0d9488; --teal-dark: #09685f; --ink: #111827; --muted: #4b5563; --line: #e5e7eb; --bg: #f4f7f6; --paper: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f9; color: var(--ink); }
#pqs-main { padding-top: 28px; padding-bottom: 48px; min-width: 0; overflow-wrap: break-word; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h1 { font-size: 34px; margin: 0 0 12px; }
.pitch { font-size: 22px; max-width: 38rem; }
.muted { color: var(--muted); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
  min-width: 0;
  max-width: 100%;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
main label { display: block; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 14px; margin: 0 0 10px; }
main input, main textarea, main select { font: 16px/1.4 "Avenir Next", "Segoe UI", sans-serif; width: 100%; max-width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; background: #fff; color: var(--ink); }
main textarea { min-height: 180px; }
main button, main .button { font: 15px/1.2 "Avenir Next", "Segoe UI", sans-serif; background: var(--teal-dark); color: white; border: 0; padding: 9px 14px; text-decoration: none; display: inline-block; cursor: pointer; }
main button.secondary, main a.secondary { background: #fff; color: var(--teal-dark); border: 1px solid var(--teal-dark); }
.banner { padding: 10px 12px; background: #ecfdf5; border: 1px solid #a7f3d0; margin: 0 0 16px; }
.error { background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; margin: 0 0 16px; }
.upload-results ul { margin: 8px 0 0; padding-left: 18px; }
table { width: 100%; border-collapse: collapse; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 15px; }
.card:has(table) { overflow-x: auto; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
dl { display: grid; grid-template-columns: minmax(8rem, 160px) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
dt { color: var(--muted); }
.status { font-size: 20px; white-space: pre-wrap; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; max-width: 100%; }
.steps { padding-left: 18px; }
.swatch { display: inline-block; width: 14px; height: 14px; vertical-align: middle; border: 1px solid var(--line); }
.thumb { max-height: 48px; max-width: 200px; display: block; }
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .pitch { font-size: 18px; }
  .card {
    padding: 16px;
    border-radius: 12px;
    box-shadow: none;
  }
  dl { grid-template-columns: minmax(0, 1fr); }
}
