/* ==========================================================================
   Thornbeck Renewables — brand override + one new component

   Same template as the other blueprints: app.css supplies every component,
   this file re-points the brand tokens. Load AFTER app.css.

   The conversation view is new — no previous blueprint needed to show an
   automated SMS exchange — so it lives here rather than bloating app.css.
   ========================================================================== */

:root {
  --brand:      #2b2f36;   /* graphite — a trades business, not an office one */
  --brand-deep: #1c1f24;
  --brand-tint: #eceef0;
  --brass:      #e39a2b;   /* amber: energy, and the colour of a warning light */
}

.avatar.brass { background: #fbecd5; color: #8a5a10; }

/* --------------------------------------------------------------------------
   Conversation — the automated SMS exchange that does the qualifying
   -------------------------------------------------------------------------- */

.convo { display: flex; flex-direction: column; gap: 12px; }

.msg { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }

.msg .t {
  font: 500 11px var(--mono);
  color: var(--ink-3);
  padding-top: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.msg .b {
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 62ch;
}

.msg.out .b {
  background: var(--brand-tint);
  border-color: #dfe3e6;
  border-radius: 12px 4px 12px 12px;
}

.msg .who {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.msg.out .who { color: #8a5a10; }

/* A captured field, shown the moment the reply supplies it */
.capture {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--good-bg);
  color: #0a6b0a;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 500;
  margin: 6px 6px 0 0;
}

.capture::before { content: "+"; font-weight: 700; }

/* --------------------------------------------------------------------------
   Week grid — install teams against days
   Job-type colours are categorical slots 1–3 from the validated palette;
   risk is shown with a pill inside the chip, never a fourth hue, so a status
   colour never impersonates a job type.
   -------------------------------------------------------------------------- */

.week { display: grid; grid-template-columns: 138px repeat(5, minmax(0, 1fr)); gap: 2px; }

.week .hd {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 9px 10px;
  background: var(--sunken);
}

.week .team {
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px;
  background: var(--sunken);
  display: flex;
  align-items: center;
  gap: 8px;
}

.week .team span { font-size: 11px; color: var(--ink-3); font-weight: 400; }

.week .cell {
  background: var(--card);
  border: 1px solid var(--line-soft);
  min-height: 74px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week .cell.free {
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, #f1f4f6 6px, #f1f4f6 12px);
}

.jobchip {
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 11.5px;
  line-height: 1.35;
  border-left: 3px solid;
  color: var(--ink);
}

.jobchip b { display: block; font-weight: 600; }
.jobchip em { font-style: normal; color: var(--ink-3); }
.jobchip.solar { border-color: #2a78d6; background: #eef4fc; }
.jobchip.hp    { border-color: #eb6834; background: #fdf0eb; }
.jobchip.ins   { border-color: #1baf7a; background: #e9f7f1; }
