/* Contractor portal. Builds on hctc-fleet.css tokens and app.css (buttons,
   fields, the asset grid); adds only the single-column page around them.
   Coloured text uses the *-text tokens, as everywhere else in this app.   */

body { font-family: var(--fl-font-sans); }

.ct-bar {
  display: flex; align-items: center; gap: var(--fl-sp-4);
  padding: 14px 24px; background: var(--fl-surface);
  border-bottom: 1px solid var(--fl-border);
}
.ct-brand { display: flex; align-items: center; gap: 10px; }
.ct-brand svg {
  width: 26px; height: 26px; flex-shrink: 0;
  stroke: var(--fl-primary); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ct-brand strong { display: block; font-size: 15px; font-weight: 600; }
.ct-brand span { display: block; font-size: 11px; color: var(--fl-text-muted); }
.ct-who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fl-text-secondary); }
.ct-who[hidden] { display: none; }

.ct-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.ct-card {
  background: var(--fl-surface); border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg); padding: 28px;
}
.ct-card h1 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ct-h2 { margin: 28px 0 8px; font-size: 15px; font-weight: 600; }
.ct-p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--fl-text-secondary); }
.ct-muted { color: var(--fl-text-muted); font-size: 13px; }
.ct-p a, .ct-crumb a, .ct-card a:not(.ct-row) { color: var(--fl-blue-text); }
.ct-crumb { margin: 0 0 12px; font-size: 13px; }

.ct-form { display: grid; gap: 14px; max-width: 26rem; margin: 18px 0; }
.ct-form .aq-btn { justify-self: start; }
.ct-form input[type="email"],
.ct-form input[type="password"] {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--fl-text); background: var(--fl-surface);
  border: 1px solid var(--fl-border); border-radius: var(--fl-radius-md);
}
.ct-form input:focus { outline: none; border-color: var(--fl-primary); box-shadow: 0 0 0 3px var(--fl-primary-dim); }
.aq-error[hidden] { display: none; }

.ct-list { display: grid; gap: 8px; margin: 8px 0 0; }
.ct-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 12px 14px; border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-md); color: inherit; text-decoration: none;
}
a.ct-row:hover { border-color: var(--fl-border-strong); background: var(--fl-surface-2); }
.ct-row strong { font-size: 14px; font-weight: 600; }
.ct-row span { font-size: 12.5px; color: var(--fl-text-muted); }

.ct-small { padding: 6px 12px; font-size: 12px; }
.ct-asset .aq-btn { margin-top: 8px; }
.ct-noprev { font-size: 12px; color: var(--fl-text-faint); }
.ct-restrict { margin: 6px 0 0; font-size: 11.5px; color: var(--fl-amber-text); }

.ct-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0; }
.ct-state { font-style: normal; font-weight: 600; }
.ct-state--ok { color: var(--fl-green-text); }
.ct-state--bad { color: var(--fl-red-text); }
.ct-state--wait { color: var(--fl-amber-text); }

@media (max-width: 640px) {
  .ct-main { padding: 20px 14px 48px; }
  .ct-card { padding: 20px; }
  .ct-bar { padding: 12px 14px; }
}
