/* Команда — отдельный внутренний контур, спокойнее и плотнее клиентской очереди. */
/* Task inbox/outbox: bounded previews, explicit review state, mobile drill-down. */
.team-task-group { margin-bottom: 16px; }
.team-group-head, .team-group-footer, .team-group-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-group-head { padding: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.team-group-head h2 { margin: 0; font-size: 16px; }
.team-group-head h2 span { color: var(--text-secondary); font-weight: 400; }
.team-group-footer { padding: 8px; flex-wrap: wrap; }
.team-group-filters { display: grid; gap: 8px; padding: 12px; }
.team-group-filters label { display: grid; gap: 4px; font-size: 12px; color: var(--text-secondary); }
.team-task-group .team-task-list { max-height: none; }
.team-task-row.needs-review { border-left: 3px solid #bd7b11; background: #fff8e8; }
.team-task-row.needs-review.is-selected { background: #fff0cc; }
.team-row-status { font-weight: 600; }
.team-review-count, .team-review-notice { color: #855500; background: #fff3d7; }
.team-review-notice { padding: 12px; border-radius: 8px; }
.team-return-form { display: grid; gap: 10px; margin-top: 14px; }
.team-executors { min-width: 0; }
.team-executor-control { position: relative; }
.team-executor-control > .input { padding-right: 44px; }
.team-executor-toggle { position: absolute; right: 0; top: 0; width: 44px; height: 100%; display: grid; place-items: center; border: 0; background: none; color: var(--text-secondary); cursor: pointer; }
.team-executor-toggle svg { width: 16px; height: 16px; }
.team-executor-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 6px 18px #24364b14; padding: 4px; }
.team-executor-options[hidden] { display: none; }
.team-executor-options [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 6px; text-align: left; font: inherit; color: var(--text-primary); background: none; cursor: pointer; }
.team-executor-options [role=option] span { min-width: 0; overflow-wrap: anywhere; }
.team-executor-options [role=option] small { flex-shrink: 0; color: var(--text-secondary); }
.team-executor-options [role=option]:hover, .team-executor-options [aria-selected=true] { background: var(--primary-soft); }
.team-executor-empty { padding: 12px; color: var(--text-secondary); }
.team-executor-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.team-executor-chips:empty { display: none; }
.team-executor-chip { display: inline-flex; align-items: center; max-width: 100%; padding-left: 10px; border-radius: 16px; background: var(--primary-soft); color: var(--text-primary); font-size: 13px; }
.team-executor-chip > span { min-width: 0; overflow-wrap: anywhere; }
.team-executor-chip button { flex: 0 0 32px; width: 32px; height: 32px; border: 0; border-radius: 50%; font: inherit; font-size: 20px; color: var(--text-secondary); background: none; cursor: pointer; }
.team-executor-chip button:hover { color: var(--primary); }
.team-executor-chip button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.team-photo-requirement { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #D8E5ED; border-radius: 10px; background: #FAFCFD; cursor: pointer; }
.team-photo-requirement input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.team-photo-requirement span { display: grid; gap: 3px; }
.team-photo-requirement b { color: #283955; font-size: 13px; }
.team-photo-requirement small { color: #71829A; font-size: 12px; line-height: 1.4; }
.team-mobile-back { display: none; }
.team-topbar { display: flex; align-items: center; gap: 20px; min-height: 68px; padding: 12px 28px; background: #F4F7FA; }
.team-topbar .team-page-head { flex: 1 1 auto; min-width: 0; margin: 0; }
.team-desktop-account { display: flex; flex: 0 0 auto; justify-content: flex-end; }
.team-desktop-account .account-panel { margin: 0; padding: 8px 12px; }
.team-task-detail { overflow-wrap: anywhere; }
.team-task-detail:focus { outline: none; }
.team-task-group button:focus-visible, .team-task-detail button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 760px) {
  .team-desktop-account { display: none; }
  .team-deals-workspace:not(.is-detail-open) .team-detail-wrap { display: none; }
  .team-deals-workspace.is-detail-open .team-deals-sidebar,
  .team-mobile-shell:has(.team-deals-workspace.is-detail-open) .team-topbar { display: none; }
  .team-mobile-back { display: inline-flex; margin-bottom: 12px; }
  .team-deals-workspace .btn { min-height: 44px; }
  .team-detail-actions { flex-wrap: wrap; }
  .team-detail-actions .btn { flex: 1 1 100%; white-space: normal; }
  .team-group-footer .btn { white-space: normal; }
  .team-task-create-modal .team-executors { min-width: 0; }
  .team-executor-chip button { width: 44px; height: 44px; flex-basis: 44px; }
}
.team-workspace {
  min-height: 100%;
  padding: 12px 28px 28px;
  background: #F4F7FA;
}

.team-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}

.team-page-head h1,
.team-task-detail h2,
.team-create-card h2,
.team-library-card h2,
.team-regulation-card h2 {
  margin: 0;
  color: #17223A;
}

.team-page-head h1 { font-size: 30px; line-height: 1.1; }
.team-deals-page-head { align-items: center; }
.team-page-head p,
.team-create-card > p,
.team-task-detail p { margin: 7px 0 0; color: #687991; line-height: 1.48; }

.team-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.team-summary span,
.team-priority-label,
.team-kicker,
.team-library-card > span,
.team-regulation-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: #EAF1F7;
  color: #5B6F89;
  font-size: 12px;
  font-weight: 700;
}
.team-summary b { color: #17223A; margin-right: 4px; }

.team-deals-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.team-deals-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.team-task-row.team-library-row { grid-template-columns: minmax(0, 1fr); }
.team-library-detail p,.team-checklist-preview li { white-space: pre-wrap; overflow-wrap: anywhere; }
.team-checklist-preview { margin: 0; padding-left: 24px; }
.team-checklist-preview li { padding: 12px 0 12px 8px; line-height: 1.5; border-bottom: 1px solid var(--border-light); }
.team-checklist-preview li:last-child { border-bottom: 0; }
.team-checklist-preview li::marker { color: var(--text-secondary); font-weight: 600; }
.team-checklist-photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 9px; margin-top: 10px; }
.team-checklist-photo { display: grid; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.team-checklist-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #DDE7EE; border-radius: 9px; background: #F4F7F9; }
.team-checklist-photo:hover img { border-color: #6FCEC2; box-shadow: 0 3px 12px rgba(17, 140, 125, .14); }
.team-checklist-photo span { overflow: hidden; color: #61748C; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-field-hint { display: block; margin-top: 6px; color: #71829A; font-size: 12px; line-height: 1.4; }
.team-checklist-item-fields { display: grid; gap: 16px; }
.team-checklist-item-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.team-checklist-item-field > button { margin-top: 22px; min-width: 40px; font-size: 22px; }
.team-deals-sidebar,.team-detail-wrap { min-width: 0; }
.team-deals-sidebar > .team-recurring-rules { padding: 18px 12px 0; }
.team-task-create-modal { width: min(680px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.team-task-create-modal > .modal-header, .team-task-create-modal .modal-footer { flex: 0 0 auto; }
.team-task-create-modal > form { display: flex; flex-direction: column; min-height: 0; }
.team-task-create-modal .team-task-create-body { min-height: 0; max-height: none; overflow-y: auto; }
.team-task-create-body { display: grid; gap: 16px; }
.team-task-create-body > p,.team-task-create-body .field { margin: 0; }
.team-task-create-body .textarea { min-height: 96px; }
#team-checklist-form .textarea { height: 38px; min-height: 38px; resize: vertical; }

.team-deals-list,
.team-detail-wrap,
.team-create-card,
.team-chat-card,
.team-library-card,
.team-regulation-card {
  border: 1px solid #E0E8F0;
  border-radius: 18px;
  background: #FFF;
  box-shadow: 0 10px 28px rgba(27, 44, 72, .05);
}
.team-deals-list { overflow: hidden; }
.team-list-toolbar { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border-bottom: 1px solid #E8EEF4; }
.team-scope-fixed { display: flex; align-items: center; font-weight: 600; cursor: default; }
.team-task-list { max-height: calc(100vh - 255px); overflow: auto; padding: 8px; }
.team-task-row { width: 100%; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 13px 11px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.team-task-row:hover { background: #F4F8FA; }
.team-task-row.is-selected { background: #E7F8F5; }
.team-priority { width: 7px; height: 34px; border-radius: 999px; background: #A7B5C5; }
.priority-low { background: #94A3B8; color: #64748B; }
.priority-normal { background: #55B7D9; color: #237A9A; }
.priority-high { background: #F0A64B; color: #A45605; }
.priority-urgent { background: #E66D6D; color: #AD3030; }
.team-task-row-copy { min-width: 0; display: grid; gap: 4px; }
.team-task-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #17223A; font-size: 14px; }
.team-task-row small { color: #71829A; font-size: 12px; line-height: 1.35; }
.team-task-row em { color: #70829A; font-style: normal; font-size: 12px; font-weight: 700; }

.team-task-detail { padding: 24px; }
.team-task-editor { margin-bottom: 18px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
.team-task-editor summary { cursor: pointer; color: var(--text-primary); font-weight: 600; }
.team-task-editor summary:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
.team-task-editor form { display: grid; gap: 12px; margin-top: 16px; }
.team-task-history.is-expanded { max-height: 360px; overflow: auto; padding-right: 3px; }
.team-task-history p,.team-detail-head p,.team-comments p { white-space: pre-wrap; overflow-wrap: anywhere; }
.team-scope-note { margin: 0; padding: 8px 16px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.team-detail-head { display: flex; justify-content: space-between; gap: 16px; }
.team-detail-head > div { min-width: 0; }
.team-detail-head .team-priority-label { align-self: flex-start; flex-shrink: 0; }
.team-detail-head h2 { margin-top: 5px; font-size: 24px; overflow-wrap: anywhere; }
.team-kicker { min-height: 24px; background: #E8F8F4; color: #118C7D; }
.team-task-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; padding: 12px 0; border-top: 1px solid #E8EEF4; border-bottom: 1px solid #E8EEF4; color: #73839A; font-size: 12px; }
.team-task-meta span { display: grid; gap: 4px; }
.team-task-meta b { color: #24324A; font-size: 14px; }
.team-detail-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.team-detail-section { margin-top: 24px; }
.team-detail-section h3 { margin: 0 0 10px; color: #263752; font-size: 15px; }
.team-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.team-section-heading p { margin: 2px 0 0; color: #71829A; font-size: 12px; line-height: 1.4; }
.team-attachment-add { position: relative; flex: 0 0 auto; overflow: hidden; }
.team-attachment-add input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.team-attachment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.team-attachment { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 9px; align-items: center; min-height: 60px; padding: 8px; border: 1px solid #DDE7EE; border-radius: 10px; color: inherit; text-decoration: none; background: #FFF; }
.team-attachment:hover { border-color: #9FD9D0; background: #F6FCFB; }
.team-attachment > span { grid-row: span 2; display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 7px; color: #4F7186; background: #ECF2F6; font-size: 11px; font-weight: 700; }
.team-attachment img { width: 100%; height: 100%; object-fit: cover; }
.team-attachment b { overflow: hidden; color: #2B3C57; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-attachment small { overflow: hidden; color: #71829A; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.team-check-progress { margin-bottom: 8px; color: #73839A; font-size: 12px; }
.team-check-item { width: 100%; display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: center; margin: 6px 0; padding: 10px; border: 1px solid #E2EAF1; border-radius: 10px; background: #FFF; text-align: left; cursor: pointer; color: #22314A; }
.team-check-item span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #B7C5D5; border-radius: 5px; color: #FFF; }
.team-check-item.is-done { background: #F1FBF8; color: #6D8196; text-decoration: line-through; }
.team-check-item.is-done span { border-color: var(--primary); background: var(--primary); }
.team-comments { display: grid; gap: 9px; }
.team-comments article { padding: 11px; border-radius: 10px; background: #F6F8FA; }
.team-comments strong { color: #263752; font-size: 13px; }
.team-comments small { margin-left: 8px; color: #8290A3; font-size: 11px; }
.team-comments p { margin: 5px 0 0; color: #44546A; font-size: 13px; white-space: pre-wrap; }
.team-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; align-items: end; }
.team-comment-form textarea { min-height: 64px; }
.team-comment-send { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #FFF; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.team-comment-send:hover:not(:disabled) { background: #0F9F8E; transform: translateY(-1px); }
.team-comment-send:disabled { cursor: not-allowed; opacity: .42; }
.team-comment-send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.team-task-decision { padding: 16px; border: 1px solid #DDE9F0; border-radius: 12px; background: #FAFCFD; }
.team-task-decision > h3 { margin: 0; color: #263752; font-size: 15px; }
.team-task-decision .team-detail-actions { margin-top: 13px; flex-wrap: nowrap; }
.team-history-section .team-section-heading { margin-bottom: 10px; }
.team-history-toggle { margin-top: 10px; }
.team-muted { color: #8090A5; font-size: 13px; }
.team-detail-empty { min-height: 460px; display: grid; place-content: center; text-align: center; padding: 24px; border: 1px dashed #D4E0EA; border-radius: 18px; color: #75879E; background: #FFF; }
.team-detail-empty span { width: 42px; margin: 0 auto 10px; color: #39BBA8; }
.team-detail-empty h3 { margin: 0; color: #34445B; }
.team-detail-empty p { max-width: 280px; margin: 7px 0 0; }

.team-create-card { padding: 20px; }
.team-create-card h2 { font-size: 18px; }
.team-create-card form { display: grid; gap: 12px; margin-top: 16px; }
.team-create-card .field { margin: 0; }
.team-create-card .textarea { min-height: 82px; }
.team-repeat-field { padding: 12px; border: 1px solid #CBEDE7; border-radius: 12px; background: #F4FCFA; }
.team-repeat-field small { display: block; margin-top: 7px; color: #5E7785; font-size: 12px; line-height: 1.4; }
.team-recurring-rules { margin-top: 22px; padding-top: 18px; border-top: 1px solid #E5EDF3; }
.team-recurring-rules > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.team-recurring-rules h3 { margin: 0; color: #1F304A; font-size: 16px; }
.team-recurring-rules p { margin: 4px 0 0; color: #71839A; font-size: 12px; line-height: 1.4; }
.team-recurring-rules > header > span { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 999px; background: #E7F8F5; color: #119B89; font-size: 12px; font-weight: 800; }
.team-recurring-rule-list { display: grid; gap: 8px; margin-top: 12px; }
.team-recurring-rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid #DCE9E9; border-radius: 11px; background: #FBFEFE; }
.team-recurring-rule > div { min-width: 0; display: grid; gap: 3px; }
.team-recurring-rule strong { overflow: hidden; color: #263752; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.team-recurring-rule small,.team-recurring-rule em { color: #70829A; font-size: 11px; font-style: normal; line-height: 1.3; }
.team-recurring-rule em { color: #168E7F; font-weight: 700; }
.team-recurring-rule.is-paused { background: #F7F8FA; opacity: .78; }
.team-recurring-rule.is-paused em { color: #8A98A9; }
.team-recurring-rule .btn.small { flex: 0 0 auto; min-height: 32px; padding: 0 9px; font-size: 12px; }
.team-recurring-empty { margin: 12px 0 0; padding: 12px; border: 1px dashed #D5E2EB; border-radius: 10px; color: #778AA0; font-size: 12px; text-align: center; }
.team-single-workspace { max-width: 1320px; }
.team-chat-card { overflow: hidden; }
.team-chat-stream { min-height: 440px; max-height: calc(100vh - 285px); overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #F8FAFC; }
.team-message { align-self: flex-start; max-width: min(680px, 84%); padding: 11px 13px; border-radius: 14px 14px 14px 3px; background: #FFF; border: 1px solid #E2EAF1; }
.team-message.is-own { align-self: flex-end; border-color: #BCECE4; border-radius: 14px 14px 3px 14px; background: #EDFBF8; }
.team-message div { display: flex; gap: 8px; align-items: baseline; }
.team-message strong { color: #263752; font-size: 13px; }
.team-message small { color: #7A8CA1; font-size: 11px; }
.team-message p { margin: 5px 0 0; color: #34445B; white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.team-chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border-top: 1px solid #E1E9F0; background: #FFF; align-items: end; }
.team-chat-composer textarea { min-height: 58px; }

.team-library-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr); gap: 18px; align-items: start; }
.team-library-list,.team-regulations-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.team-library-card,.team-regulation-card { padding: 20px; }
.team-library-card h2,.team-regulation-card h2 { margin-top: 8px; font-size: 18px; }
.team-library-card p,.team-regulation-card p { color: #6B7D94; line-height: 1.45; font-size: 13px; }
.team-library-card ol { margin: 14px 0 0; padding-left: 20px; color: #405168; font-size: 13px; line-height: 1.65; }
.team-regulation-card p { color: #405168; white-space: pre-wrap; }
.team-regulation-card small { display: block; margin-top: 16px; color: #8290A3; font-size: 11px; }
.team-regulation-editor { min-height: 220px !important; }

.team-notification-root {
  position: relative;
  display: inline-flex;
}

.team-notifications-popover {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 90;
  top: calc(100% + 10px);
  left: -8px;
  width: min(340px, calc(100vw - 28px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(36, 50, 74, 0.18);
}

.team-notifications-popover > header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 12px;
  border-bottom: 1px solid var(--line);
}

.team-notifications-popover header strong,
.team-notifications-popover header small,
.team-notification-item b,
.team-notification-item span,
.team-notification-item small {
  display: block;
}

.team-notifications-popover header strong {
  color: var(--text-primary);
  font-size: 14px;
}

.team-notifications-popover header small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
}

.team-notifications-popover > header > span {
  display: grid;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  place-items: center;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  background: var(--primary-soft);
  border-radius: 999px;
}

.team-notification-list {
  min-height: 0;
  max-height: 316px;
  overflow: auto;
}

.team-notification-all {
  flex: 0 0 auto;
}

.team-notification-item {
  overflow-wrap: anywhere;
  width: 100%;
  padding: 12px 15px;
  color: var(--text-primary);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.team-notification-item:hover {
  background: var(--primary-soft);
}

.team-notification-item.is-visit-reminder {
  border-left: 3px solid #e2a23b;
}

.team-notification-item.is-visit-reminder.is-active {
  background: #fff9eb;
}

.team-notification-item.is-visit-reminder.is-active:hover {
  background: #fff3d7;
}

.team-notification-item.is-visit-reminder.is-resolved {
  color: #71829a;
  background: #fff;
  border-left-color: #c9d5e1;
  opacity: .72;
}

.team-notification-item b {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-notification-item span,
.team-notification-item small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.team-notification-item small {
  color: var(--text-secondary);
  font-size: 10px;
}

.team-notification-empty {
  margin: 0;
  padding: 20px 15px;
  color: var(--text-secondary);
  font-size: 12px;
}

.team-notification-all {
  width: 100%;
  min-height: 42px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  background: #fff;
  border: 0;
  cursor: pointer;
}

.team-notification-all:hover {
  background: var(--primary-soft);
}

.team-notification-popover-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--line);
}

.team-notification-read-all {
  min-height: 42px;
  padding: 0 13px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  background: #fff;
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
}

.team-notification-read-all:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.team-notifications-page {
  display: grid;
  grid-template-columns: minmax(210px, .28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.team-notification-feed,
.team-notification-filters {
  overflow: hidden;
  border: 1px solid #E0E8F0;
  border-radius: 18px;
  background: #FFF;
  box-shadow: 0 10px 28px rgba(27, 44, 72, .05);
}

.team-notification-feed > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #E8EEF4;
}

.team-notification-feed > header {
  align-items: center;
}

.team-notification-filters > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #E8EEF4;
}

.team-notification-filters h2 {
  margin: 0;
  color: #17223A;
  font-size: 16px;
}

.team-notification-filters > header > span,
.team-notification-filters button b {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  color: #087F75;
  font-size: 11px;
  font-weight: 800;
  background: #DDF5F1;
  border-radius: 999px;
}

.team-notification-filters > div {
  display: grid;
  gap: 3px;
  padding: 8px;
}

.team-notification-filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: #60728B;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.team-notification-filters button:hover {
  color: #087F75;
  background: #F1FBF9;
}

.team-notification-filters button.is-active {
  color: #087F75;
  background: #DDF5F1;
}

.team-notification-feed h2 {
  margin: 0;
  color: #17223A;
  font-size: 18px;
}

.team-notification-feed p {
  margin: 5px 0 0;
  color: #71829A;
  font-size: 13px;
}

.team-notification-feed > header > span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: #118C7D;
  font-size: 12px;
  font-weight: 700;
  background: #E8F8F4;
  border-radius: 999px;
}

.team-subnav-button {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-subnav-count {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: #087F75;
  font-size: 10px;
  font-weight: 800;
  background: #DDF5F1;
  border-radius: 999px;
}

.team-notification-feed .team-notification-list {
  max-height: min(560px, calc(100vh - 270px));
}

.team-notification-feed .team-notification-item {
  padding: 15px 20px;
}

.team-chat-notification-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 11px;
  width: 100%;
  padding: 20px;
  color: #17223A;
  text-align: left;
  cursor: pointer;
}

.team-chat-notification-card:hover {
  background: #F4FBFA;
  border-color: #BCECE4;
}

.team-chat-notification-card > span {
  grid-row: 1 / span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #118C7D;
  background: #E8F8F4;
  border-radius: 10px;
}

.team-chat-notification-card strong { font-size: 14px; }
.team-chat-notification-card small { color: #71829A; font-size: 12px; }

@media (max-width: 1320px) {
  .team-deals-layout { grid-template-columns: minmax(270px,.65fr) minmax(0,1fr); }
  .team-create-card { grid-column: 1 / -1; }
  .team-create-card form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-create-card form > .field:first-child,.team-create-card form > .field:nth-child(2),.team-create-card form > button { grid-column: 1 / -1; }
  .team-create-card form > .form-grid { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .team-topbar { min-height: 0; padding: 10px 12px 0; }
  .team-topbar .team-page-head { flex-wrap: wrap; }
  .team-workspace { padding: 12px; }
  .team-page-head h1 { font-size: 25px; }
  .team-deals-layout,.team-library-layout,.team-library-list,.team-regulations-list,.team-notifications-page { grid-template-columns: 1fr; }
  .team-notification-filters > div { display: flex; overflow-x: auto; }
  .team-notification-filters button { flex: 0 0 auto; width: auto; }
  .team-task-list { max-height: 340px; }
  .team-task-detail,.team-create-card { padding: 16px; }
  .team-create-card form { grid-template-columns: 1fr; }
  .team-task-meta,.team-chat-composer { grid-template-columns: 1fr; }
  .team-comment-send { width: 44px; height: 44px; }
  .team-chat-stream { min-height: 370px; max-height: none; }
}
.team-notification-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}
