#teamViews[data-view="team-resources"] .team-agent-view-switch {
  display: none;
}
.tw-resources {
  padding: clamp(16px, 2vw, 30px);
  min-width: 0;
  position: relative;
  color: var(--ink);
  border: 1px solid var(--module-glass-edge);
  border-radius: 16px;
  background: linear-gradient(130deg, var(--module-glass-sheen), transparent 68%), var(--module-glass);
  box-shadow:
    inset 0 1px var(--module-glass-sheen),
    var(--module-glass-shadow);
  backdrop-filter: blur(28px) saturate(115%);
}
.tw-heading,
.tw-subhead,
.tw-side-head,
.tw-room-tools,
.tw-dialog header,
.tw-dialog footer,
.tw-subhead > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tw-heading > div:first-child,
.tw-subhead > section,
.tw-side-head > h3,
.tw-dialog h3 {
  margin-right: auto;
}
.tw-resources h2,
.tw-resources h3,
.tw-resources h4,
.tw-dialog h3,
.tw-dialog h4 {
  margin-block: 0;
}
.tw-heading h2 {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.035em;
}
.tw-heading p,
.tw-foot,
.tw-dialog small,
.tw-pop small,
.tw-person small {
  font-size: 12px;
  color: var(--muted);
}
.tw-heading p {
  margin: 5px 0 0;
}
.tw-resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tw-resource-toolbar .tw-resource-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}
.tw-resource-action img { display: block; width: 18px; height: 18px; }
.tw-resource-action[data-resource="add"] img { filter: brightness(0) invert(1); }
.tw-resource-action[data-resource="roster"] { border: 1px solid var(--line-strong, var(--line)); }
:root[data-theme="dark"] .tw-resource-action[data-resource="roster"] img,
:root[data-theme="dark"] .tw-edit-group img { filter: brightness(1.55); }
.tw-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--track);
  border: 1px solid var(--line);
}
.tw-tabs button,
.tw-icon {
  border: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.tw-tabs button {
  padding: 7px 11px;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
}
.tw-tabs [aria-pressed="true"] {
  background: var(--surface-strong);
  box-shadow: 0 1px 4px #21183820;
  font-weight: 650;
}
.tw-icon {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 32px;
  height: 32px;
  font-size: 19px;
  line-height: 1;
}
.tw-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 18px 0 22px;
  font-size: 12px;
}
.tw-stats b {
  font-variant-numeric: tabular-nums;
}
.tw-stats .tw-over {
  margin-left: auto;
}
.tw-over {
  color: #ae3d1b;
}
:root[data-theme="dark"] .tw-over {
  color: #ffa880;
}
.tw-subhead {
  justify-content: space-between;
  margin-bottom: 14px;
}
.tw-subhead h3,
.tw-staff h3 {
  font-size: 17px;
}
.tw-subhead strong {
  font-size: 13px;
}
.tw-scroll {
  overflow-x: auto;
}
.tw-gantt {
  min-width: 720px;
  --people: clamp(116px, 14%, 180px);
}
.tw-gantt-head,
.tw-gantt-row {
  display: grid;
  grid-template-columns: var(--people) 75px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.tw-gantt-head {
  font-size: 12px;
  color: var(--muted);
}
.tw-gantt-head > div,
.tw-lanes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.tw-gantt-head > div > span {
  text-align: center;
  padding: 8px 0;
  border-left: 1px solid var(--line);
}
.tw-today {
  background: color-mix(in srgb, #8677cc 13%, transparent);
}
.tw-person {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.tw-person span {
  min-width: 0;
}
.tw-person b,
.tw-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tw-person i,
.tw-avatar {
  display: grid;
  flex: none;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, #917bcc 18%, var(--surface-strong));
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.tw-gantt-row {
  min-height: 52px;
  font-size: 13px;
}
.tw-lanes {
  align-content: center;
  align-self: stretch;
  padding: 4px 0;
  gap: 3px 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to right, transparent 71.43%, color-mix(in srgb, var(--ink) 3%, transparent) 71.43%);
  background-size:
    calc(100% / 7) 100%,
    100% 100%;
}
.tw-teal {
  --project: #187b6e;
}
.tw-blue {
  --project: #3664a4;
}
.tw-violet {
  --project: #7753ad;
}
.tw-amber {
  --project: #966707;
}
.tw-rose {
  --project: #b24d75;
}
.tw-olive {
  --project: #688139;
}
.tw-coral {
  --project: #b45936;
}
.tw-indigo {
  --project: #5b63b2;
}
.tw-bar {
  margin: 0 2px;
  padding: 4px 8px;
  text-align: left;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  border: 0;

  border-radius: 4px;
  background: color-mix(in srgb, var(--project) 19%, var(--surface-strong));
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}
.tw-bar:focus-visible,
.tw-bar:hover {
  outline: 2px solid var(--project);
}
.tw-neutral {
  --project: var(--muted);
}
.tw-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--bar-bg);
  color: var(--bar-ink);
}
.tw-project-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}
.tw-bar,
.tw-project-chip {
  background: var(--bar-bg);
  color: var(--bar-ink);
}
.tw-bar {
  border-radius: 4px;
  font-weight: 550;
  min-height: 22px;
  line-height: 1.2;
  font-size: 12px;
}
.tw-bar b {
  font-weight: inherit;
  margin-left: 3px;
}
.tw-subhead section p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.tw-subhead .tw-icon {
  background: color-mix(in srgb, var(--ink) 9%, var(--surface-strong));
  border: 0;
  border-radius: 5px;
  width: 30px;
  height: 30px;
}
.tw-gantt-row > strong,
.tw-subhead strong {
  font-variant-numeric: tabular-nums;
}
.tw-gantt-row > strong {
  font-size: 14px;
  font-weight: 600;
}
.tw-gantt-head > div > span:nth-last-child(-n + 2) {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.tw-lanes {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(
      to right,
      transparent var(--today-start),
      color-mix(in srgb, #8864c8 9%, transparent) var(--today-start) calc(var(--today-start) + 100% / 7),
      transparent 0
    ),
    linear-gradient(to right, transparent 71.43%, color-mix(in srgb, var(--ink) 4%, transparent) 71.43%);
  background-size:
    calc(100% / 7) 100%,
    100% 100%,
    100% 100%;
}
.tw-teal,
.tw-blue,
.tw-violet,
.tw-rose,
.tw-coral,
.tw-olive,
.tw-amber,
.tw-indigo,
.tw-neutral {
  --bar-bg: color-mix(in srgb, var(--project) 18%, var(--surface-strong));
  --bar-ink: color-mix(in srgb, var(--project) 72%, #111);
}
:root[data-theme="dark"] .tw-teal {
  --bar-bg: #21453f;
  --bar-ink: #a5e5d8;
}
:root[data-theme="dark"] .tw-blue {
  --bar-bg: #293f59;
  --bar-ink: #b5d2f3;
}
:root[data-theme="dark"] .tw-olive {
  --bar-bg: #36442b;
  --bar-ink: #d2e9a9;
}
:root[data-theme="dark"] .tw-violet {
  --bar-bg: #423653;
  --bar-ink: #decbff;
}
:root[data-theme="dark"] .tw-coral {
  --bar-bg: #553b30;
  --bar-ink: #f6c3a6;
}
:root[data-theme="dark"] .tw-amber {
  --bar-bg: #51462d;
  --bar-ink: #f6db91;
}
:root[data-theme="dark"] .tw-rose {
  --bar-bg: #513447;
  --bar-ink: #f0b7d5;
}
:root[data-theme="dark"] .tw-indigo {
  --bar-bg: #353854;
  --bar-ink: #ced1ff;
}
:root[data-theme="dark"] .tw-neutral {
  --bar-bg: #393648;
  --bar-ink: #e2ddec;
}
:root[data-theme="dark"] .tw-dot {
  background: var(--bar-ink);
}
.tw-staff-tasks {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
.tw-staff-tasks button {
  display: grid;
  gap: 3px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.tw-project summary small,
.tw-staff-tasks small,
.tw-mix small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.tw-project summary small {
  margin: 3px 0 0 17px;
}
.tw-unassigned {
  margin-top: 12px;
  font-size: 12px;
}
.tw-unassigned summary {
  cursor: pointer;
}
.tw-pop header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tw-pop header small {
  font-weight: 600;
}
.tw-pop-tasks {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tw-pop .tw-pop-tasks button {
  background: transparent;
  padding: 6px 0 0;
}
.tw-pop-tasks button small {
  margin-top: 4px;
}
.tw-undated {
  margin-top: 12px;
  font-size: 12px;
}
.tw-undated summary {
  cursor: pointer;
  color: var(--muted);
}
.tw-undated button {
  margin: 6px 5px 0 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
}
.tw-undated small {
  color: var(--muted);
}
.tw-legend,
.tw-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tw-legend {
  flex-wrap: wrap;
  gap: 14px;
  margin: 15px 0;
  font-size: 11px;
}
.tw-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 3px;
  background: var(--project);
}
.tw-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}
.tw-staff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 26px;
}
.tw-staff section {
  min-width: 0;
}
.tw-staff h3 {
  margin: 0 0 16px;
}
.tw-mix {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) 2fr 44px;
  gap: 8px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.tw-track {
  display: flex;
  height: 9px;
  border-radius: 3px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.tw-track i {
  background: var(--project);
  border-right: 1px solid var(--surface);
}
.tw-project summary,
.tw-project-head {
  display: grid;
  grid-template-columns: 2fr 0.65fr 0.65fr 1fr;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.tw-project summary,
.tw-dialog summary {
  cursor: pointer;
}
.tw-project summary b:before {
  content: "›";
  margin-right: 6px;
}
.tw-project[open] summary b:before {
  content: "⌄";
}
.tw-project > div {
  background: var(--track);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.tw-project p {
  margin: 0 0 6px;
}
.tw-project-head {
  font-size: 11px;
  color: var(--muted);
}
.tw-pop {
  position: fixed;
  width: min(290px, 95vw);
  z-index: 15;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 8px 34px #1e143733;
  padding: 14px;
  font-size: 13px;
  max-height: 70vh;
  overflow: auto;
}
.tw-pop p {
  margin: 6px 0;
}
.tw-pop h4 {
  margin: 12px 0 5px;
}
.tw-pop button {
  display: block;
  width: 100%;
  margin: 4px 0;
  text-align: left;
}
.tw-pop [data-task-link] {
  padding: 6px;
  background: var(--track);
  color: var(--ink);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.tw-pop small {
  display: block;
}
.tw-dialog {
  width: min(530px, 94vw);
  padding: 0;
  max-height: 88dvh;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 60px #17102040;
}
.tw-dialog::backdrop {
  background: #19142258;
}
.tw-dialog form {
  padding: 20px;
}
.tw-dialog header {
  justify-content: space-between;
}
.tw-dialog footer {
  justify-content: flex-end;
}
.tw-fields {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.tw-fields p {
  margin: 0;
}
.tw-fields label:not(.tw-check) {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
.tw-fields input:not([type="checkbox"]),
.tw-fields select,
.tw-fields .tw-draft-date,
.tw-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  padding: 7px;
}
.tw-fields fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  margin: 0 0 8px;
}
.tw-fields legend,
.tw-fields output {
  font-size: 12px;
  font-weight: 600;
}
.tw-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin: 5px 0;
}
.tw-pair,
.tw-allocation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tw-allocation details {
  grid-column: 1/-1;
  font-size: 13px;
}
.tw-allocation details[open] {
  max-height: 190px;
  overflow: auto;
}
.tw-error {
  color: var(--danger, #ac462a);
  font-size: 13px;
}
.tw-side-head {
  padding: 0 14px;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.team-chat-sidebar .tw-side-head h3 {
  margin: 0;
}
.tw-side-scroll {
  overflow: auto;
}
.tw-side-scroll h4 {
  font-size: 11px;
  color: var(--muted);
  margin: 18px 16px 5px;
}
.tw-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.tw-room-tools {
  gap: 5px;
}
.tw-search {
  padding: 8px 16px;
  font-size: 12px;
}
.tw-group .team-chat-header {
  flex-wrap: wrap;
}
.tw-group .team-chat-history {
  min-height: 0;
  background: color-mix(in srgb, var(--track) 72%, transparent);
  padding-block: 14px;
}
.team-chat-shell {
  --chat-accent: #675bcb;
  --chat-quiet: color-mix(in srgb, var(--surface-strong) 89%, #9a8caf);
}
.team-chat-shell .tw-side-scroll {
  flex: 1;
  padding: 0 16px;
}
.tw-side-scroll h4 {
  font-weight: 500;
  margin: 12px 0 6px;
}
.tw-side-scroll h4:not(:first-child) {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tw-side-scroll .team-chat-contact {
  border-radius: 8px;
  padding: 7px 8px;
  margin-bottom: 3px;
}
.tw-side-scroll .team-chat-contact.active {
  background: color-mix(in srgb, var(--chat-accent) 14%, var(--surface-strong));
}
.tw-room-icon { display: block; }
.tw-direct-row { position: relative; }
.tw-options {
  position: absolute;
  inset: 7px 4px auto auto;
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--ink);
  background: var(--chat-quiet);
  border-radius: 7px;
  cursor: pointer;
}
.tw-direct-row .team-chat-contact { padding-right: 36px; }
.tw-group .team-chat-header {
  min-height: 70px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}
.tw-group .team-chat-header > .tw-avatar { width: 36px; height: 36px; }
.tw-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.tw-group-title h3 { min-width: 0; overflow-wrap: anywhere; }
.tw-edit-group {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.tw-edit-group[hidden] { display: none; }
.tw-edit-group img { display: block; width: 14px; height: 14px; object-fit: contain; }
.tw-edit-group:is(:hover, :focus-visible) { background: var(--blue-soft); }
.tw-edit-group:focus-visible,
.tw-resource-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tw-group .team-chat-actions button[data-group-action],
.tw-room-tools button.secondary-button {
  display: grid;
  place-items: center;
  width: 34px;
  padding: 0;
  background: var(--chat-quiet);
}
.tw-room-tools { gap: 10px; flex-wrap: wrap; }
.tw-summary-tag { border-radius: 999px; padding: 4px 9px; background: var(--blue-soft); color: var(--blue); font-size: 12px; white-space: nowrap; }
.tw-room-tools button[data-group-action="invite"] { background: var(--chat-accent); }
:root[data-theme="dark"] .tw-room-icon,
.tw-room-tools [data-group-action="invite"] img { filter: brightness(0) invert(1); }
.tw-group .team-chat-composer {
  padding: 15px 24px 12px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}
:root .tw-group .team-chat-composer textarea { min-height: 40px; }
.tw-group .team-chat-actions { gap: 8px; margin-top: 9px; }
.tw-group .team-chat-message { margin-bottom: 12px; }
.tw-group .team-chat-message-content { flex: 0 1 auto; width: max-content; max-width: min(550px, 84%); }
.tw-group .outgoing .team-chat-message-content { max-width: min(490px, 84%); }
.tw-day { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 14px; color: var(--muted); font-size: 11px; }
.tw-day::before, .tw-day::after { content: ""; width: min(9%, 92px); border-top: 1px solid var(--line); }
.tw-dialog.tw-summary-history { width: min(494px, calc(100vw - 16px)); }
.tw-dialog.tw-summary-history form { display: flex; flex-direction: column; max-height: 88dvh; box-sizing: border-box; }
.tw-summary-history .tw-fields { min-height: 0; overflow: auto; }
.tw-reports details { background: var(--surface-strong); border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.tw-reports details + details { margin-top: 8px; }
@media (max-width: 760px) {
  .team-chat-shell .tw-side-scroll { padding-inline: 4px; }
  .tw-direct-row .team-chat-contact { justify-content: flex-start; padding-right: 0; }
  .tw-options { width: 22px; right: 0; }
  .tw-group .team-chat-composer { padding-inline: 12px; }
  .tw-group .team-chat-header { gap: 6px; }
}
.tw-group [role="status"],
.tw-filename {
  font-size: 12px;
  color: var(--muted);
}
.tw-group .team-chat-bubble p,
.tw-reports p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tw-group .tw-summary-message .team-chat-message-content { width: 596px; max-width: min(596px, calc(100% - 42px)); }
.tw-summary-message .team-chat-message-meta { align-items: center; gap: 7px; margin-bottom: 5px; }
.tw-summary-message .team-chat-message-meta strong { color: var(--ink); font-weight: 600; }
.tw-summary-message .team-chat-message-meta small {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.tw-summary-card {
  --summary-text: #5041a2;
  padding: 11px 14px 10px;
  border: 1px solid #dcd3f5;
  border-radius: 8px;
  background: #f7f4fc;
  color: var(--ink);
}
:root[data-theme="dark"] .tw-summary-card {
  --summary-text: #c7bbff;
  border-color: color-mix(in srgb, #aa98f4 37%, var(--surface-strong));
  background: color-mix(in srgb, #8170df 13%, var(--surface-strong));
}
.tw-summary-card > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.tw-summary-card > summary::-webkit-details-marker { display: none; }
.tw-summary-card summary strong, .tw-summary-card summary small { display: block; overflow-wrap: anywhere; }
.tw-summary-card summary strong { font-size: 15px; font-weight: 600; line-height: 21px; }
.tw-summary-card summary small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 16px; }
.tw-summary-toggle,
.tw-group .tw-summary-card .secondary-button[data-group-action="source"] {
  min-height: 28px;
  align-content: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: transparent;
  color: var(--summary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  text-align: left;
}
.tw-summary-card summary:hover .tw-summary-toggle,
.tw-group .tw-summary-card .secondary-button[data-group-action="source"]:hover { background: var(--blue-soft); }
.tw-summary-card[open] .tw-summary-expand, .tw-summary-card:not([open]) .tw-summary-collapse { display: none; }
.tw-summary-content { display: grid; gap: 7px; margin-top: 7px; }
.tw-summary-content p { margin: 0; font-size: 13px; line-height: 18px; }
.tw-summary-content dl { display: grid; gap: 7px; margin: 0; }
.tw-summary-content > p + dl { padding-top: 7px; border-top: 1px solid var(--line); }
.tw-summary-content dt { color: var(--summary-text, var(--blue)); font-size: 11px; font-weight: 600; line-height: 16px; }
.tw-summary-content dd { margin: 2px 0 0; font-size: 12px; line-height: 17px; }
.tw-summary-content :is(p, dd), .tw-draft-note p { white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-summary-content button { justify-self: start; }

.tw-group .tw-draft-message .team-chat-message-content { width: 388px; max-width: min(388px, calc(100% - 42px)); }
.tw-draft {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--module-glass);
}
.tw-draft header { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tw-draft header strong { font-size: 13px; font-weight: 600; }
.tw-draft header small { color: var(--muted); font-size: 11px; }
.tw-draft[data-status="added"] header small { color: var(--blue); }
.tw-draft .tw-fields { margin-block: 12px 0; gap: 10px; }
.tw-draft .tw-fields label { color: var(--muted); font-size: 11px; font-weight: 600; }
.tw-draft .tw-fields :is(input, select, .tw-draft-date) { color: var(--ink); font-size: 13px; font-weight: 400; }
.tw-draft .tw-draft-date { margin: 0; text-align: left; }
.tw-draft .tw-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-draft-details h4 { margin: 8px 0; font-size: 16px; line-height: 21px; overflow-wrap: anywhere; }
.tw-draft-details dl { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.tw-draft-details dt { color: var(--muted); font-size: 11px; line-height: 16px; }
.tw-draft-details dd { margin: 2px 0 0; font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.tw-draft footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tw-group .tw-draft .secondary-button[data-group-action="discard"] { background: transparent; color: var(--muted); }
.tw-group .tw-draft .secondary-button[data-group-action="confirm"] { background: var(--chat-accent); color: white; }
.tw-draft button[data-group-action]:hover, .tw-draft button[data-group-action]:active { filter: brightness(.92); }
.tw-draft-note { margin-top: 6px; color: var(--muted); font-size: 12px; }
.tw-draft-note p { margin: 5px 0; line-height: 17px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tw-draft { background: var(--surface-strong); }
}
.tw-reports details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tw-reports p {
  margin: 10px 0;
}
@media (max-width: 850px) {
  .tw-staff {
    grid-template-columns: 1fr;
  }
  .tw-room-tools button {
    padding-inline: 6px;
  }
}
@media (max-width: 700px) {
  .team-chat-sidebar .tw-side-head h3 {
    display: none;
  }
  .tw-side-head {
    justify-content: center;
  }
  .tw-side-scroll h4 {
    font-size: 9px;
    margin-inline: 4px;
    text-align: center;
  }
  .tw-heading .tw-tabs {
    order: 3;
  }
  .tw-room-tools {
    width: 100%;
  }
  .tw-stats {
    gap: 8px;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tw-resources,
  .team-chat-shell {
    background: var(--surface-strong);
  }
}
.tw-project summary,
.tw-project-head {
  grid-template-columns: minmax(68px, 1.6fr) minmax(34px, 0.8fr) 0.5fr 0.6fr minmax(50px, 0.9fr);
}
.tw-role-mix {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 3px;
}
.tw-role-mix i:first-child {
  background: #8568c9;
}
.tw-role-mix i:last-child {
  background: #478eaf;
}
.tw-new-menu {
  margin: 0;
  position: fixed;
  right: auto;
  bottom: auto;
  width: 206px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 24px #20152f26;
  background: var(--surface-strong);
}
.team-chat-shell .tw-new-menu .secondary-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.tw-new-menu button img { width: 16px; height: 16px; object-fit: contain; }
.team-chat-shell .tw-new-menu :is([data-group-action="remove-direct"], [data-group-action="clear-history"]) { color: #b3313c; }
:root[data-theme="dark"] .tw-new-menu button.secondary-button { background: transparent; }
:root[data-theme="dark"] .tw-new-menu button:is([data-group-action="remove-direct"], [data-group-action="clear-history"]) { color: #ff989e; }
:root[data-theme="dark"] .tw-new-menu [data-group-action="remove-direct"] img { filter: brightness(1.8); }
.team-chat-shell .tw-new-menu button.secondary-button:is(:hover, :focus-visible) {
  background: var(--track);
}
.tw-dialog:has(.tw-agent-choices) { width: min(446px, 94vw); }
.tw-agent-choices { display: grid; gap: 4px; max-height: 256px; overflow: auto; }
.tw-fields label.tw-choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 8px; cursor: pointer; }
.tw-choice input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tw-choice:has(:checked) { background: color-mix(in srgb, #675bcb 14%, var(--surface-strong)); }
.tw-choice:focus-within { outline: 2px solid #675bcb; outline-offset: -2px; }
.tw-choice small { margin-left: auto; color: var(--muted); }
.tw-choice:has(:checked) small:empty::after { content: "Selected"; }
@font-face {
  font-family: "Group Inter";
  src: url(fonts/inter-latin-variable.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.tw-dialog.tw-group-modal {
  --group-surface: #f9f8fb;
  --group-quiet: #f0edf3;
  --group-line: rgba(51, 48, 56, .13);
  --group-secondary: #605f64;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(446px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  box-sizing: border-box;
  border: 1px solid var(--group-line);
  border-radius: 14px;
  background: var(--group-surface);
  color: var(--ink);
  box-shadow: none;
  overflow: hidden;
  letter-spacing: normal;
  font-family: "Group Inter", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
:root[data-theme="dark"] .tw-group-modal {
  --group-surface: var(--surface-strong);
  --group-quiet: var(--track);
  --group-line: var(--line);
  --group-secondary: var(--muted);
}
.tw-group-modal::backdrop { background: rgb(39 32 53 / 28%); border-radius: 14px; }
.tw-group-modal form {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100dvh - 18px);
  padding: 18px 20px;
  gap: 15px;
}
.tw-group-modal header { flex: none; flex-wrap: nowrap; align-items: start; gap: 8px; }
.tw-dialog-heading { min-width: 0; }
.tw-group-modal .tw-dialog-heading h3 { margin: 0; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 31px; letter-spacing: -.02em; }
.tw-group-modal .tw-dialog-heading p { margin: 5px 0 0; color: var(--group-secondary); font: 400 12px/17px "Group Inter", Inter, sans-serif; overflow-wrap: anywhere; }
.tw-group-modal header .tw-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: var(--group-quiet) url(figma-ui/resource-dismiss.svg) center no-repeat;
  font-size: 0;
}
.tw-group-modal .tw-fields { min-height: 0; margin: 0; gap: 15px; overflow-y: auto; overscroll-behavior: contain; }
.tw-create-group form { padding-right: 18px; }
.tw-create-group .tw-fields { border-top: 1px solid var(--group-line); padding-top: 15px; }
.tw-create-group .tw-fields > label, .tw-participants > span {
  gap: 4px;
  color: var(--group-secondary);
  font: 600 11px/16px "Group Inter", Inter, sans-serif;
}
.tw-create-group .tw-fields :is(input[name="name"], select, summary) {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--group-line);
  border-radius: 6px;
  background-color: var(--surface-strong);
  color: var(--ink);
  font: 400 13px/18px "Group Inter", Inter, sans-serif;
  box-shadow: none;
}
.tw-create-group .tw-fields select:not([multiple]):not([size]),
.tw-create-group .tw-fields summary {
  appearance: none;
  background-image: url(figma-ui/group-chevron.svg);
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 34px;
  cursor: pointer;
}
.tw-participants { display: grid; gap: 5px; min-width: 0; }
.tw-create-group .tw-fields .tw-participants summary {
  display: flex; align-items: center; height: auto; min-height: 38px; padding-block: 6px;
  list-style: none;
}
.tw-participants summary::-webkit-details-marker { display: none; }
.tw-participants small { color: var(--group-secondary); font: 400 12px/17px "Group Inter", Inter, sans-serif; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.tw-chips > span { min-width: 0; border-radius: 5px; background: #f1edfb; color: #5041a2; padding: 3px 7px; font: 600 11px/16px "Group Inter", Inter, sans-serif; overflow-wrap: anywhere; }
:root[data-theme="dark"] .tw-chips > span { background: var(--blue-soft); color: var(--blue); }
.tw-participant-options { display: grid; gap: 2px; max-height: 152px; overflow: auto; margin-top: 4px; padding: 4px; border: 1px solid var(--group-line); border-radius: 6px; background: var(--surface-strong); }
.tw-participants .tw-check { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 8px; margin: 0; padding: 6px; border-radius: 4px; overflow-wrap: anywhere; cursor: pointer; }
.tw-participants input[type="checkbox"] { appearance: auto; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); }
.tw-participants .tw-check:has(:checked) { background: var(--blue-soft); }
.tw-group-modal footer { flex: none; gap: 8px; margin: 0; }
.tw-group-modal footer button { height: 34px; min-height: 34px; padding: 0 16px; border-radius: 8px; font: 600 12px/16px "Group Inter", Inter, sans-serif; }
.tw-group-modal .tw-error { margin: 0; }
.tw-group-modal .tw-error:empty { display: none; }
.tw-dialog.tw-view-members { width: min(448px, calc(100vw - 16px)); background: var(--surface-strong); border-color: var(--line); }
.tw-view-members form { padding: 22px 24px 20px; gap: 16px; }
.tw-view-members header { align-items: center; }
.tw-view-members .tw-dialog-heading h3 { font-size: 20px; font-weight: 600; line-height: 24px; }
.tw-view-members .tw-dialog-heading p { font-size: 13px; line-height: 16px; margin-top: 4px; color: var(--muted); }
.tw-member-count {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.tw-member-count:focus-visible { outline-offset: -1px; }
.tw-member-list { display: grid; gap: 3px; list-style: none; padding: 0; margin: 0; }
.tw-member-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.tw-member-list strong { font: 600 14px/18px "Group Inter", Inter, sans-serif; color: var(--ink); }
.tw-member-list small { font: 400 12px/16px "Group Inter", Inter, sans-serif; color: var(--muted); }
.tw-member-list .tw-avatar, .tw-member-list .team-chat-avatar { width: 32px; height: 32px; border-radius: 8px; }
.tw-member-list .tw-avatar { background: var(--blue-soft); color: var(--blue); font: 600 12px/16px "Group Inter", Inter, sans-serif; }
.tw-dialog .tw-choices {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
}
.tw-choices legend { margin-bottom: 5px; padding: 0; }
.tw-edit-group-modal .tw-fields p,
.tw-clear-history .tw-fields p { font-size: 12px; line-height: 17px; color: var(--muted); }
.tw-choice-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 8px;
}
.tw-choice-list:empty { display: none; }
.tw-list-choice {
  gap: 10px;
  min-height: 40px;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.tw-list-choice[hidden] { display: none; }
.tw-list-choice input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--chat-accent, var(--blue)); }
.tw-list-choice:has(:disabled) { cursor: default; }
.tw-list-choice small { margin-inline-start: auto; }
.tw-people-overview { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tw-people-overview strong { display: block; margin-bottom: 3px; font-size: 13px; line-height: 18px; }
.tw-people-overview button { min-height: 34px; padding: 0 16px; border-radius: 8px; font: 600 12px/16px "Group Inter", Inter, sans-serif; }
.tw-group-agent-list, .tw-people-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tw-group-agent-list { max-height: 88px; }
.tw-edit-group-modal:has(~ .tw-manage-people[open]) { visibility: hidden; }
.tw-edit-group-modal:has(~ .tw-manage-people[open])::backdrop { background: transparent; }
.tw-dialog.tw-manage-people {
  background: color-mix(in srgb, var(--group-surface) 88%, var(--module-glass));
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tw-dialog.tw-manage-people { background: var(--group-surface); }
}
.tw-manage-people .tw-fields { gap: 10px; padding-top: 15px; border-top: 1px solid var(--group-line); }
.tw-manage-people .tw-fields p { font-size: 12px; line-height: 17px; color: var(--group-secondary); }
.tw-people-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  background: var(--group-quiet);
  border-radius: 9px;
}
.tw-people-filters button {
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--group-secondary);
  font: 600 12px/16px "Group Inter", Inter, sans-serif;
  cursor: pointer;
}
.tw-people-filters button:hover { color: var(--ink); }
.tw-people-filters button[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--blue);
  box-shadow: 0 1px 3px rgb(31 31 29 / 10%);
}
:root[data-theme="dark"] .tw-people-filters button[aria-pressed="true"] { background: var(--blue-soft); }
:root[data-theme="dark"] :is(.tw-manage-people, .tw-edit-group-modal:has(.tw-people-overview)) header .tw-icon { background: var(--group-quiet); }
:root[data-theme="dark"] :is(.tw-manage-people, .tw-edit-group-modal:has(.tw-people-overview)) header .tw-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--ink);
  mask: url(figma-ui/resource-dismiss.svg) center no-repeat;
}
.tw-manage-people .tw-roster-search input {
  box-sizing: border-box;
  height: 36px;
  padding: 0 10px 0 34px;
  border-radius: 6px;
  font-size: 12px;
}
.tw-manage-people .tw-roster-search input::placeholder { color: var(--group-secondary); }
.tw-people-list { box-sizing: border-box; height: clamp(72px, calc(100dvh - 310px), 232px); scrollbar-gutter: stable; }
.tw-manage-people .tw-people-empty { padding: 8px 2px; }
.tw-people-selection { align-self: center; margin-inline-end: auto; font-size: 12px; font-weight: 600; }
.tw-clear-history h3 { font-size: 20px; line-height: 28px; }
.tw-dialog.tw-clear-history footer { border-top: 1px solid var(--line); padding-top: 15px; }
.tw-clear-history button[type="submit"],
:root[data-theme="dark"] .tw-clear-history button[type="submit"] { background: #a1323a; color: #fff; border-color: #a1323a; }
.tw-dialog.tw-schedule {
  --group-line: var(--line);
  position: fixed;
  inset: var(--schedule-top, 8px) var(--schedule-right, 8px) auto auto;
  margin: 0;
  width: min(var(--schedule-width, 100vw), calc(100vw - 16px));
  max-width: none;
  height: var(--schedule-height, calc(100dvh - 16px));
  border: 0;
  background: linear-gradient(to right, rgb(39 32 53 / 28%) max(0px, 100% - 484px), transparent max(0px, 100% - 484px));
}
.tw-schedule::backdrop { background: transparent; }
.tw-dialog.tw-schedule form {
  width: min(100%, 484px);
  height: 100%;
  min-height: 0;
  max-height: none;
  margin-left: auto;
  gap: 0;
  padding: 20px 22px 19px;
  border: 1px solid var(--group-line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--module-glass-sheen), transparent 65%), var(--module-glass);
  -webkit-backdrop-filter: blur(28px) saturate(115%);
  backdrop-filter: blur(28px) saturate(115%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tw-dialog.tw-schedule form { background: var(--group-surface); }
}
.tw-schedule header, .tw-schedule footer, .tw-schedule .tw-error { flex: none; }
.tw-schedule header { padding-bottom: 16px; border-bottom: 1px solid var(--group-line); }
.tw-dialog.tw-schedule header .tw-icon { background: var(--group-quiet); }
.tw-schedule header .tw-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  mask: url(figma-ui/resource-dismiss.svg) center no-repeat;
}
.tw-dialog.tw-schedule header .tw-icon:hover { background: var(--blue-soft); }
.tw-schedule .tw-fields {
  flex: 1;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -3px;
  padding: 16px 3px;
}
.tw-schedule .tw-error:not(:empty) { margin-bottom: 8px; }
.tw-schedule .tw-fields small { display: block; color: var(--muted); font-size: 11px; line-height: 16px; }
.tw-fields fieldset.tw-schedule-fields { display: grid; gap: 16px; min-width: 0; border: 0; padding: 0; margin: 0; }
.tw-schedule-pair { display: grid; grid-template-columns: minmax(0, 205fr) minmax(0, 221fr); gap: 12px; }
.tw-schedule-card .tw-schedule-pair { grid-template-columns: minmax(0, 232fr) minmax(0, 170fr); }
.tw-schedule-pair label { min-width: 0; }
.tw-schedule .tw-schedule-pair label { gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 16px; }
.tw-schedule-pair :is(input,select) { height: 34px; box-sizing: border-box; padding-inline: 9px; border-radius: 6px; }
.tw-schedule-pair select { appearance: none; padding-right: 29px; background: var(--surface-strong) url(figma-ui/group-chevron.svg) right 9px center no-repeat; }
.tw-schedule-card { display: grid; gap: 9px; padding: 10px 12px; min-width: 0; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 8px; }
.tw-schedule-heading, .tw-roster > div, .tw-post-target { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tw-schedule .tw-fields .tw-schedule-heading { display: flex; justify-content: space-between; }
.tw-schedule-heading strong { font-weight: 600; font-size: 14px; line-height: 20px; }
.tw-schedule-heading small { margin-top: 2px; overflow-wrap: anywhere; }
.tw-schedule .tw-schedule-switch { appearance: none; flex: none; position: relative; width: 34px; height: 20px; min-height: 0; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 20px; background: var(--muted); cursor: pointer; }
.tw-schedule-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; }
.tw-schedule .tw-schedule-switch:checked { background: #675bcb; }
.tw-schedule-switch:checked::before { transform: translateX(14px); }
.tw-schedule input.tw-schedule-switch:not(:checked) { background: color-mix(in srgb, var(--ink) 20%, var(--surface-strong)); }
.tw-schedule .tw-fields .tw-schedule-pair :is(input, select) { font-size: 13px; font-weight: 400; }
.tw-schedule .tw-fields h4 { font-size: 13px; font-weight: 600; line-height: 18px; }
.tw-topic-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0; }
.tw-topic-chips label { position: relative; cursor: pointer; }
.tw-topic-chips input[type=checkbox] { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.tw-topic-chips span { padding: 4px 8px; border-radius: 5px; font-size: 11px; background: var(--surface-strong); }
.tw-topic-chips :checked + span, .tw-post-target { background: var(--blue-soft); }
.tw-topic-chips :checked + span { color: var(--blue); font-weight: 600; }
.tw-topic-chips :focus-visible + span { outline: 2px solid var(--ink); }
.tw-post-target { padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.tw-post-target strong { font-size: 13px; font-weight: 600; line-height: 18px; }
.tw-post-target small { margin-top: 2px; }
.tw-schedule footer { border-top: 1px solid var(--line); padding-top: 12px; }
.tw-roster { display: grid; gap: 8px; max-height: 50dvh; overflow: auto; }
.tw-roster > div { padding: 5px; }
.tw-roster small { color: var(--muted); margin-left: auto; }
.team-chat-stage:has(> svg) { flex-direction: row; align-items: center; }
.team-chat-stage > svg { width: 16px; height: 16px; flex: 0 0 16px; }
#teamChatAvatar:has(.team-chat-group-avatar) { background: none; }
#teamChatAvatar .team-chat-group-avatar { display: grid; width: 36px; height: 36px; flex-basis: 36px; gap: 1px; }
#teamChatAvatar .team-chat-group-avatar :is(.team-chat-avatar,img) { width: 11px; height: 11px; }
@media (max-width: 600px) {
  .tw-dialog.tw-schedule { inset: 8px; width: auto; height: auto; }
  .tw-dialog.tw-schedule form { width: 100%; padding: 14px; }
}
.tw-schedule input[type="checkbox"] { accent-color: #675bcb; }
.tw-group .tw-search { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.tw-group .tw-search input { flex: 1; }
.tw-chat-access, .tw-joined { padding: 12px; border-radius: 9px; background: var(--surface-strong); color: var(--ink); font-size: 13px; }
.tw-chat-access p, .tw-joined small { color: var(--muted); display: block; margin: 6px 0; }
.tw-joined { margin: 8px 0 12px; text-align: center; }
.tw-report { width: 100%; display: grid; gap: 7px; grid-template-columns: 1fr auto; text-align: left; padding: 14px; border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); border-radius: 9px; margin-bottom: 8px; cursor: pointer; }
.tw-report time, .tw-report span { color: var(--muted); font-size: 12px; }
.tw-report span { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tw-mentions { position: absolute; left: 24px; bottom: calc(100% + 4px); width: min(258px, 92%); padding: 8px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-strong); box-shadow: 0 5px 12px #201a3b24; }
.tw-mentions button.secondary-button { display: flex; align-items: center; width: 100%; gap: 8px; text-align: left; background: transparent; }
.tw-mentions small { display: block; font-weight: 400; color: var(--muted); }
:root[data-theme="dark"] .tw-room-tools button[data-group-action="invite"] { background: #675bcb; }
.tw-resources .primary-button,
.tw-dialog .primary-button {
  background: #675bcb;
  color: #fff;
  border-color: #675bcb;
}

:root[data-theme="dark"] .tw-pop {
  background: #292733;
  border-color: #514b5c;
}
:root[data-theme="dark"] .tw-subhead .tw-icon {
  background: #353240;
  color: #d5cce7;
}
:root[data-theme="dark"] .tw-resources .primary-button,
:root[data-theme="dark"] .tw-dialog .primary-button {
  color: white;
  background: #6758c8;
}
.tw-bar {
  padding-inline: 6px;
}
.tw-person b,
.tw-gantt-row > strong,
.tw-bar {
  letter-spacing: normal;
}

@media (max-width: 600px) {
  #teamViews .team-view-switch {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }
  #teamViews .team-view-switch .nav-item {
    padding-inline: 8px;
    font-size: 12px;
  }
}

/* Team Resources project and allocation drawers */
.tw-dialog.tw-resource-drawer {
  --drawer-bg: #f9f8fc;
  --drawer-field: #fff;
  --drawer-tint: #eeeaf8;
  --drawer-warning: #f9eee8;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(522px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--drawer-bg);
  box-sizing: border-box;
}
:root[data-theme="dark"] .tw-resource-drawer {
  --drawer-bg: #222126;
  --drawer-field: #29282e;
  --drawer-tint: #302c41;
  --drawer-warning: #392c29;
}
.tw-resource-drawer form {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 0 clamp(14px, 5vw, 28px);
}
.tw-resource-drawer header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px 12px;
  flex: none;
  padding: 27px 0 21px;
  border-bottom: 1px solid var(--line);
}
.tw-resource-drawer header h3 { font-size: 22px; line-height: 32px; }
.tw-resource-drawer header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.tw-resource-drawer header button { grid-column: 2; grid-row: 1 / 3; justify-self: end; }
.tw-resource-drawer .tw-fields {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 22px;
  margin: 0 -4px;
  padding: 22px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tw-resource-drawer h4 { font-size: 16px; line-height: 22px; font-weight: 650; }
.tw-resource-drawer .tw-fields p, .tw-load-preview small {
  font-size: 12px; line-height: 17px; font-weight: 400; color: var(--muted);
}
.tw-roster-drawer.tw-resource-drawer {
  background: linear-gradient(135deg, var(--module-glass-sheen), transparent 65%), var(--module-glass);
  backdrop-filter: blur(28px) saturate(115%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tw-roster-drawer.tw-resource-drawer { background: var(--drawer-bg); }
}
.tw-roster-drawer .tw-fields { gap: 14px; }
.tw-roster-search { position: relative; }
.tw-roster-search img { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; pointer-events: none; }
:root[data-theme="dark"] .tw-roster-search img { filter: brightness(1.7); }
.tw-roster-count { color: var(--muted); font-weight: 500; }
.tw-project-form, .tw-members-form, .tw-linked { display: grid; gap: 8px; }
.tw-project-form { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tw-project-fields { display: grid; grid-template-columns: 1.18fr 1fr; gap: 12px; }
.tw-resource-drawer .tw-project-form label[hidden] { display: none; }
.tw-resource-drawer .tw-project-form label, .tw-staffing-columns {
  font-size: 11px; font-weight: 600; line-height: 16px; color: var(--muted);
}
.tw-resource-drawer .tw-fields :is(input:not([type=checkbox]), select) {
  height: 36px; padding: 0 10px; box-sizing: border-box; border-radius: 6px;
  font-size: 13px; font-weight: 400; background-color: var(--drawer-field); color: var(--ink);
}
.tw-roster-drawer .tw-fields .tw-roster-search input { padding-inline-start: 34px; }
.tw-resource-drawer .tw-fields select {
  appearance: none; padding-right: 25px; background-image: url("figma-ui/resource-select.svg");
  background-repeat: no-repeat; background-position: right 8px center;
}
.tw-resource-drawer .tw-fields .tw-percent { position: relative; display: block; }
.tw-percent input { font-variant-numeric: tabular-nums; appearance: textfield; padding-right: 18px !important; }
.tw-percent input::-webkit-inner-spin-button { appearance: none; }
.tw-percent span { position: absolute; top: 50%; left: calc(12px + var(--digits, 1) * 1ch); transform: translateY(-50%); color: var(--ink); pointer-events: none; font-size: 13px; }
.tw-resource-drawer .tw-allocations { display: grid; gap: 8px; }
.tw-staffing-columns, .tw-staffing-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .95fr) minmax(0, .85fr) minmax(66px, 1.15fr) 28px;
  align-items: center; gap: 8px;
}
.tw-staffing-columns { margin-top: 5px; }
.tw-staffing-columns span:last-child, .tw-after { text-align: right; }
.tw-after { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tw-resource-drawer .tw-after.tw-over { color: var(--danger, #b44528); font-weight: 600; }
.tw-resource-drawer header button, .tw-remove {
  display: grid; place-items: center; min-width: 0; height: 32px; padding: 0;
  border: none; border-radius: 5px; background: transparent; cursor: pointer;
}
.tw-resource-drawer header button { width: 30px; }
.tw-resource-drawer header button:hover, .tw-remove:hover { background: var(--track); }
.tw-resource-drawer :is(.secondary-button, .primary-button), .tw-task-settings > summary {
  min-height: 36px; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--line);
  font-size: 13px; line-height: 18px; font-weight: 550;
}
.tw-resource-drawer .secondary-button, .tw-task-settings > summary { color: var(--ink); background: var(--drawer-field); }
.tw-resource-drawer [data-resource="row"] { display: flex; align-items: center; gap: 7px; justify-self: start; margin-top: 3px; }
.tw-resource-drawer .tw-load-preview { display: grid; gap: 5px; padding: 12px 15px; border-radius: 8px; background: var(--drawer-tint); }
.tw-load-preview strong { font-size: 14px; line-height: 21px; }
.tw-load-preview.tw-over-capacity { background: var(--drawer-warning); }
.tw-linked h4 { font-size: 14px; }
.tw-linked-task { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 12px; }
.tw-linked-task span { color: var(--muted); }
.tw-task-settings > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; cursor: pointer; font-size: 12px; }
.tw-task-settings summary::-webkit-details-marker { display: none; }
.tw-row-settings { margin-top: 8px; }
.tw-row-settings .tw-pair { margin-bottom: 8px; }
.tw-resource-drawer footer { flex: none; gap: 8px; padding: 15px 0 24px; border-top: 1px solid var(--line); }
.tw-resource-drawer .tw-error:empty { display: none; }
.tw-resource-drawer .tw-error { flex: none; margin: 0 0 8px; }
:root[data-theme="dark"] .tw-resource-drawer button img { filter: brightness(1.8); }
@media (max-width: 450px) {
  .tw-staffing-columns, .tw-staffing-row { grid-template-columns: minmax(0, 1.6fr) minmax(62px, 1fr) minmax(48px, .8fr) 56px 24px; gap: 4px; }
  .tw-resource-drawer .tw-fields select { padding-left: 6px; padding-right: 18px; background-position: right 3px center; }
  .tw-resource-drawer header { padding-top: 16px; padding-bottom: 14px; }
  .tw-resource-drawer footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

.tw-name-field { display: grid; gap: 5px; min-width: 0; }
.tw-name-control, .tw-color-control { position: relative; display: block; }
.tw-resource-drawer .tw-name-control:has(button) input { padding-right: 32px; }
.tw-project-choose, .tw-project-manage, .tw-edit-allocations {
  display: inline-grid; place-items: center; padding: 0;
  border: 0; border-radius: 5px; background: transparent; cursor: pointer;
}
.tw-project-choose { position: absolute; inset: 1px 1px 1px auto; width: 32px; }
.tw-project-item { position: relative; }
.tw-project-item summary, .tw-project-head { padding-right: 36px; }
.tw-project-item summary { min-height: 38px; }
.tw-project-manage, .tw-edit-allocations { width: 30px; height: 30px; }
.tw-project-manage { position: absolute; top: 4px; right: 0; }
.tw-edit-allocations:hover, .tw-project-manage:hover, .tw-project-manage[aria-expanded="true"], .tw-project-choose:hover { background: var(--track); }
.tw-breakdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tw-breakdown-heading strong { font-size: 12px; }
.tw-project-menu {
  position: fixed; inset: auto; box-sizing: border-box; width: 174px;
  max-width: calc(100vw - 16px); max-height: min(330px, 55dvh); overflow-y: auto;
  margin: 0; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-strong); color: var(--ink); box-shadow: 0 5px 12px #201a3b24;
}
.tw-project-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px;
  border: 0; border-radius: 6px; padding: 6px 9px; background: transparent; color: inherit;
  font: inherit; font-size: 13px; font-weight: 600; text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
.tw-project-menu button:hover, .tw-project-menu button:focus-visible { background: var(--track); }
.tw-project-menu [data-resource="project-details"] img { margin-inline: 3px; }
.tw-project-menu [data-resource="delete-project"] { color: #a6303a; }
.tw-project-list [data-existing] { min-height: 32px; font-weight: 400; }
.tw-project-list .tw-dot { margin: 0; flex: none; }
.tw-project-list [data-new-project]:not(:first-child) { border-top: 1px solid var(--line); border-radius: 0; }
.tw-project-form:has(.tw-color-field) { border-bottom: 0; }
.tw-color-field { width: min(208px, 100%); }
.tw-color-control i { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); pointer-events: none; }
.tw-resource-drawer .tw-color-control select { text-align: center; }
.tw-dialog.tw-delete-project { width: min(446px, calc(100vw - 32px)); border-radius: 14px; background: #f9f8fc; }
.tw-delete-project header { position: relative; padding-right: 44px; }
.tw-delete-project header h3 { font-size: 20px; line-height: 28px; }
.tw-delete-project header button { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 32px; min-height: 32px; }
.tw-delete-project .tw-fields { margin: 6px 44px 15px 0; font-size: 12px; line-height: 17px; color: var(--muted); }
.tw-delete-project .tw-error:empty { display: none; }
.tw-delete-project footer { border-top: 1px solid var(--line); padding-top: 16px; gap: 8px; }
.tw-delete-project footer button { min-height: 34px; padding: 7px 12px; font-size: 12px; border-radius: 7px; }
.tw-dialog.tw-delete-project button[type="submit"] { background: #a6303a; border-color: #a6303a; color: #fff; }
:root[data-theme="dark"] .tw-delete-project { background: #242328; }
:root[data-theme="dark"] .tw-project-menu [data-resource="delete-project"] { color: #ff979e; }
:root[data-theme="dark"] :is(.tw-project-menu,.tw-project-manage,.tw-edit-allocations,.tw-delete-project) img { filter: brightness(1.65); }
.tw-staff h3 { margin-bottom: 4px; }
.tw-chart-desc { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.tw-role-key { display: flex; gap: 12px; color: var(--muted); font-size: 11px; }
.tw-role-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: #8568c9; }
.tw-role-key span:last-child::before { background: #478eaf; }
:root[data-theme="dark"] .tw-dialog.tw-delete-project button[type="submit"] { background: #a6303a; border-color: #a6303a; }
.tw-staff > section + section { padding-left: 22px; border-left: 1px solid var(--line); }
.tw-member-split { display: grid; grid-template-columns: 1fr 32px 42px 64px; gap: 8px; line-height: 18px; }
.tw-member-split span:nth-last-child(-n+2) { text-align: right; }
.tw-staff-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: 11px; color: var(--muted); }
.tw-staff-footer .tw-subhead { margin: 0; }
@media (max-width: 850px) {
  .tw-staff > section + section { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}
