/* ═══════════════════════════════════════════════════════════════════════════
   team-wave3.css — the Team block on an item card, the "Team" card (My items, Project team,
   Assistant access), the first-upload guide and the Feedback form.
   lane cc-impl-4 · 2026-10-10 · Builder C · NEW FILE.
   FOR       js/team-hub-api.js, js/team-layer.js, js/team-accounts.js,
             js/first-upload-guide.js, js/pilot-feedback.js (the only CONSUMERS of these rules).
   FLAGS     team_layer_enabled · team_accounts_enabled · team_agent_api_enabled ·
             onboarding_first_upload_enabled · pilot_feedback_enabled. With them off no node
             carries a .tw3- class, so nothing here applies.
   css/styles.css is FROZEN, so this is a separate sheet. It MUST load AFTER css/reading.css and
   css/reading-pm.css, whose .rdg- and .rpm- atoms the modules reuse as they are. Every rule
   here is prefixed .tw3- and every colour is a design token (`:root` is the DARK palette,
   `:root.light`, a CLASS on <html>, overrides it; `--blue` and `--primary` are the same teal).
   LIMITS    nothing outside .tw3- is styled; no existing rule is overridden. The guide sits on
             the New Bid form, outside any .rdg-card, so it sets the two --rdg- variables the
             reused atoms read.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── shared atoms ──────────────────────────────────────────────────────────── */
.tw3-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; }
.tw3-sub { margin: 12px 0 0; }
.tw3-sub > .rdg-label { display: block; margin-bottom: 4px; }
.tw3-block { margin: 0 0 16px; }
.tw3-msg { font-size: 11.5px; }
.tw3-who b { font-weight: 600; }
.tw3-input, .tw3-text {
  font: inherit; font-size: 12.5px; padding: 5px 9px; min-width: 0;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--rdg-line, var(--gray-300)); border-radius: 6px;
}
.tw3-input { flex: 1 1 200px; max-width: 46ch; }
.tw3-input-num { flex: 0 0 96px; max-width: 96px; }
.tw3-text { display: block; width: 100%; box-sizing: border-box; resize: vertical; line-height: 1.45; }
.tw3-input:focus, .tw3-text:focus { outline: none; border-color: var(--primary); }
.tw3-form {
  margin: 8px 0; padding: 9px 12px; border: 1px dashed var(--rdg-line, var(--gray-300));
  border-radius: var(--radius-sm, 8px);
}
.tw3-form .tw3-text { margin: 6px 0; }
.tw3-quote {
  flex: 1 1 100%; margin: 3px 0 2px; padding: 2px 0 2px 9px; border-left: 2px solid var(--rdg-line, var(--gray-300));
  font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap;
}
.tw3-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text); cursor: pointer; }

/* ── the Team block on an item card ────────────────────────────────────────── */
.tw3-team { padding-top: 10px; border-top: 1px solid var(--rdg-rule, var(--gray-200)); }
.tw3-assistant { color: var(--primary); border-color: var(--primary); }
.tw3-activity { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; }
.tw3-act { margin: 0; padding: 5px 0 5px 9px; border-left: 2px solid var(--rdg-rule, var(--gray-200)); }
.tw3-act-assistant { border-left-color: var(--primary); }
.tw3-handoff { align-items: center; }
.tw3-cite { border-style: dashed; }
.tw3-basis { font-style: italic; }

/* ── the Team card ─────────────────────────────────────────────────────────── */
.tw3-card .rdg-head .tw3-fb { margin-left: auto; }
.tw3-unread b { color: var(--text); }
.tw3-note { align-items: center; }
.tw3-secretbox {
  margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--yellow);
  border-radius: var(--radius-sm, 8px); background: var(--surface);
}
.tw3-secret, .tw3-url {
  font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--rdg-line, var(--gray-300)); background: var(--card-bg);
  color: var(--text); overflow-wrap: anywhere; user-select: all;
}
.tw3-howto { margin-top: 8px; color: var(--text-secondary); }

/* ── Feedback ──────────────────────────────────────────────────────────────── */
.tw3-fb { display: inline-block; }
.tw3-fb-slot:empty { display: none; }
.tw3-fb-form { min-width: min(420px, 80vw); text-align: left; }
.tw3-fb-row {
  --rdg-rule: var(--gray-200); --rdg-line: var(--gray-300);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px;
  margin: 14px 0 4px; padding: 8px 2px; font-family: var(--font); font-size: 12px; color: var(--text-secondary);
}
.tw3-fb-item { padding-top: 8px; border-top: 1px solid var(--rdg-rule, var(--gray-200)); }
.tw3-rate { display: inline-flex; gap: 4px; }
.tw3-rate-n { min-width: 30px; text-align: center; font-family: var(--font-mono); }

/* ── the first-upload guide (on the New Bid form) ──────────────────────────── */
.tw3-guide {
  --rdg-rule: var(--gray-200); --rdg-line: var(--gray-300);
  margin: 0 0 16px; padding: 14px 18px 10px;
  color: var(--text); font-family: var(--font);
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary); border-radius: var(--radius, 10px); box-shadow: var(--shadow);
}
.tw3-guide-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tw3-guide-title { margin: 0; font-size: .95rem; font-weight: 600; color: var(--text); }
.tw3-guide-close { margin-left: auto; }
.tw3-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tw3-step { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.tw3-step-mark {
  flex: none; width: 22px; height: 22px; line-height: 20px; text-align: center; box-sizing: border-box;
  border: 1px solid var(--rdg-line); border-radius: 50%;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-secondary); background: var(--surface);
}
.tw3-step-done .tw3-step-mark { border-color: var(--green); color: var(--green); }
.tw3-step-body { min-width: 0; }
.tw3-step-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.tw3-step-text { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--text-secondary); overflow-wrap: anywhere; }
.tw3-quote-inline { color: var(--text); }

.tw3-open:focus-visible, .tw3-cite:focus-visible, .tw3-rate-n:focus-visible, .tw3-check:focus-within {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
@media (max-width: 720px) {
  .tw3-input { flex-basis: 100%; max-width: none; }
  .tw3-guide { padding: 12px 12px 8px; }
}
