/* The AI team (team.js). Restrained: one surface, hairlines, line icons; colour only for "on" and the one primary button. */
.tm-page { max-width: 980px; margin: 0 auto; padding-bottom: 56px; }
.tm-ph .end { display: flex; gap: 8px; }
.tm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tm-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-md, 14px); background: var(--paper, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.tm-card.proposed { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--graphite) 22%, transparent); }
.tm-card.paused { opacity: .72; }
.tm-head { display: flex; align-items: flex-start; gap: 10px; }
.tm-av { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--chalk); display: grid; place-items: center; color: var(--graphite); }
.tm-av svg { width: 18px; height: 18px; }
.tm-av.lg { width: 48px; height: 48px; border-radius: 14px; }
.tm-av.lg svg { width: 24px; height: 24px; }
.tm-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tm-who b { font-size: 15px; }
.tm-who span { color: var(--stone); font-size: 13px; line-height: 1.4; }
.tm-state { flex: none; font-size: 12px; color: var(--stone); padding: 3px 8px; border-radius: 999px; background: var(--chalk); white-space: nowrap; }
.tm-state.on { color: var(--green); background: var(--mint-tint); }
.tm-brief summary { cursor: pointer; font-size: 13px; color: var(--stone); list-style: none; }
.tm-brief summary::-webkit-details-marker { display: none; }
.tm-brief summary::before { content: "+ "; }
.tm-brief[open] summary::before { content: "– "; }
.tm-brief p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--stone); }
.tm-meta span + span::before { content: ""; }
.tm-last { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.tm-err { margin: 0; font-size: 12.5px; color: var(--stone); padding: 8px 10px; border-radius: 8px; background: var(--chalk); }
.tm-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.tm-del { margin-inline-start: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--stone); display: grid; place-items: center; cursor: pointer; }
.tm-del:hover { background: var(--chalk); color: var(--graphite); }
.tm-del svg { width: 15px; height: 15px; }
.tm-revise { display: grid; gap: 8px; }
.tm-revise textarea, .tm-all input { font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper, #fff); color: inherit; resize: vertical; }
.tm-revise div { display: flex; gap: 6px; }
.tm-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; margin: 4px 0 6px; border-radius: var(--r-md, 14px); background: var(--chalk); }
.tm-strip > div { display: grid; gap: 2px; flex: 1 1 220px; }
.tm-strip span { color: var(--stone); font-size: 13px; }
.tm-all { display: flex; gap: 6px; flex: 2 1 300px; }
.tm-all input { flex: 1; min-width: 0; }
.tm-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 20px; max-width: 520px; margin: 10px auto; }
.tm-empty b { font-size: 18px; }
.tm-empty > span:not(.tm-av) { color: var(--stone); line-height: 1.55; }
.tm-empty-acts { display: flex; gap: 8px; margin-top: 6px; }

/* The layer: builder, agent form, project picker. */
.tm-layer .fl-sheet { width: min(560px, calc(100% - 28px)); }
.tm-sub { margin: -6px 0 14px; color: var(--stone); font-size: 13.5px; line-height: 1.45; }
.tm-steps { display: flex; gap: 4px; margin: 0 40px 16px 0; }
.tm-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.tm-steps i.on { background: var(--graphite); }
.tm-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 12px; }
.fl-sheet form label.tm-chip { display: block; margin: 0; font-weight: 400; cursor: pointer; }
.tm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tm-chip span { display: grid; gap: 2px; height: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.tm-chip span small { color: var(--stone); font-size: 12px; }
.tm-chip input:checked + span { box-shadow: inset 0 0 0 1.5px var(--graphite); font-weight: 600; }
.tm-chip input:focus-visible + span { outline: 2px solid var(--graphite); outline-offset: 2px; }
.tm-q { font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.fl-sheet form label.tm-field { display: grid; gap: 6px; margin-bottom: 12px; }
.tm-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tm-foot .grow { flex: 1; }
.tm-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-days { display: flex; gap: 4px; }
.fl-sheet form .tm-days label { display: block; margin: 0; cursor: pointer; }
.tm-days input { position: absolute; opacity: 0; pointer-events: none; }
.tm-days span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 500; }
.tm-days input:checked + span { background: var(--graphite); color: var(--paper, #fff); box-shadow: none; }
.tm-when input[type=time] { width: auto !important; }
.tm-hint { margin: 6px 0 12px; font-size: 12.5px; color: var(--stone); }
.tm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .tm-two { grid-template-columns: 1fr; } .tm-grid { grid-template-columns: 1fr; } .tm-ph .end { flex-wrap: wrap; } }
.tm-pick { display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.tm-pick button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: start; font: inherit; cursor: pointer; color: inherit; }
.tm-pick button:hover { background: var(--chalk); }
.tm-pick button.on { background: var(--chalk); }
.tm-pick button span { display: grid; gap: 2px; }
.tm-pick button small { color: var(--stone); font-size: 12px; }
.tm-pick svg { width: 18px; height: 18px; flex: none; }
.tm-phone { padding: 64px 16px 40px; }
.fl-sheet form label.tm-chip, .fl-sheet form .tm-days label { position: relative; }
.fl-sheet .tm-chip input, .fl-sheet .tm-days input { width: 1px !important; height: 1px; padding: 0 !important; inset: 0; }
