/* NEXORA CRM — Shared Design System
   Authoritative global tokens, shell, components and responsive behavior.
   Styles are grouped by ownership; Overview-specific components live in overview.css.
   Do not append a second set of overriding selectors. */

:root {
  --red: #d45b68;
  --yellow: #d59339;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  color-scheme: light;
  --sidebar: #16201e;
  --sidebar2: #23322c;
  --canvas: #f6f7f5;
  --panel: #ffffff;
  --ink: #202b2a;
  --muted: #728078;
  --muted2: #9da8a1;
  --line: #e5eae5;
  --line2: #eef1ed;
  --accent: #256c58;
  --accentdark: #18513f;
  --mint: #bfe3ce;
  --green: #248b68;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(23, 42, 33, 0.025);
}

body {
  margin: 0;
  background: var(--canvas);
  line-height: 1.5;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

* {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a6b7ff;
  outline-offset: 2px;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* Application shell and navigation */
.brand-word small {
  display: block;
  margin-top: 4px;
  color: #8294ae;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.9px;
}
.workspace-copy {
  flex: 1;
  min-width: 0;
}
.workspace-copy strong,
.user-tile strong {
  display: block;
  font-weight: 650;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-copy small,
.user-tile small {
  display: block;
  font-size: 10px;
  color: #90a1b9;
  margin-top: 2px;
}
.workspace-picker svg {
  width: 14px;
  height: 14px;
  color: #a1b0c8;
}
.sidebar-scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #344159 transparent;
}
.nav-link span {
  flex: 1;
}
.nav-link small {
  font-size: 10px;
  color: #7c8da5;
}
.user-avatar,
.top-avatar {
  border-radius: 50%;
  height: 34px;
  width: 34px;
  background: #e4d0c4;
  color: #725348;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  flex-shrink: 0;
}
.user-tile span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.user-tile strong {
  color: #fff;
}
.user-tile > svg {
  color: #7c8da5;
  width: 16px;
}
.app-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.top-left,
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.global-search svg {
  height: 15px;
  width: 15px;
}
.global-search span {
  flex: 1;
}
.global-search kbd {
  border: 1px solid #e4e9f0;
  border-radius: 4px;
  color: #94a0af;
  font-size: 10px;
  font-family: inherit;
  padding: 1px 4px;
  white-space: nowrap;
}
.icon-btn {
  width: 33px;
  height: 33px;
  border: 0;
  background: transparent;
  color: #657589;
  display: grid;
  place-items: center;
  border-radius: 8px;
  position: relative;
}
.icon-btn:hover {
  background: #edf2f8;
  color: #223859;
}
.bell-btn .notification-dot {
  width: 6px;
  height: 6px;
  background: #ff7f83;
  border-radius: 50%;
  border: 1px solid white;
  position: absolute;
  right: 7px;
  top: 6px;
}
.mobile-menu,
.sidebar-close {
  display: none;
}
.btn svg {
  height: 14px;
  width: 14px;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: #c44153;
  border-color: #f1dce1;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.small {
  height: 29px;
  padding: 0 11px;
  font-size: 10px;
}
.btn.icon-only {
  width: 35px;
  padding: 0;
}
.text-button svg {
  height: 13px;
  width: 13px;
}
.segment {
  background: #f1f4f8;
  border: 1px solid #edf0f4;
  padding: 3px;
  border-radius: 8px;
  display: flex;
  gap: 2px;
}
.segment button {
  font-size: 10px;
  color: #8b96a6;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 6px 10px;
  font-weight: 680;
}
.segment button.is-active {
  color: #34435b;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 40, 70, 0.08);
}
.activity-list {
  display: grid;
  gap: 3px;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f3f6;
}
.activity-item:last-child {
  border: 0;
}
.activity-mark {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf1ff;
  color: var(--accent);
}
.activity-mark svg {
  height: 15px;
  width: 15px;
}
.activity-mark.green {
  background: #e9f7f1;
  color: #269e7c;
}
.activity-mark.orange {
  background: #fff6e9;
  color: #cc8732;
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-body strong {
  font-size: 11px;
  font-weight: 700;
}
.activity-body p {
  margin: 3px 0 0;
  color: #8a95a6;
  font-size: 10px;
}
.data-table thead {
  background: #f9fbfd;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafcff;
}
.data-table tbody tr:focus-within {
  background: #f7f9ff;
}
.contact-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 730;
  flex-shrink: 0;
}
.contact-cell strong {
  font-weight: 700;
  font-size: 11px;
  display: block;
  color: var(--ink);
}
.contact-cell small {
  font-size: 10px;
  color: #a2acb8;
  display: block;
  margin-top: 2px;
}
.table-link:hover {
  text-decoration: underline;
  color: var(--accent);
}
.status::before {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.customer,
.status.won,
.status.active,
.status.completed {
  background: #e8f8f0;
  color: #1c9872;
}
.status.qualified,
.status.negotiation,
.status.inprogress {
  background: #e9efff;
  color: #4569d8;
}
.status.prospect,
.status.contacted,
.status.proposal {
  background: #fff6e9;
  color: #be822a;
}
.status.lost,
.status.archived {
  background: #fbecef;
  color: #bd5c6c;
}
.muted {
  color: #94a0b0;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}
.table-action {
  background: none;
  border: none;
  color: #7d8b9e;
  padding: 5px;
  border-radius: 4px;
}
.table-action:hover {
  color: var(--accent);
  background: #eef2ff;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.field-search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #9eaabd;
  min-width: 234px;
}
.field-search svg {
  width: 15px;
  height: 15px;
}
.field-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #a5afbc;
}
.checkbox {
  accent-color: var(--accent);
  height: 14px;
  width: 14px;
  cursor: pointer;
}
.empty-state {
  padding: 55px 22px;
  text-align: center;
  color: #8a98a8;
}
.empty-state svg {
  width: 27px;
  height: 27px;
  color: #bdc9d6;
}
.empty-state h3 {
  font-size: 14px;
  color: #2e4057;
  margin: 13px 0 5px;
}
.empty-state p {
  font-size: 11px;
  margin: 0 0 17px;
}
.pipeline-col.drag-over {
  border-color: var(--accent);
  background: #e9edff;
}
.pipeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pipeline-col-header strong {
  font-size: 11px;
  flex: 1;
}
.pipeline-col-header small {
  background: #e2e8ee;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  color: #66768b;
}
.pipeline-total {
  color: #8795a7;
  font-weight: 700;
  font-size: 11px;
  padding: 0 4px 13px;
}
.deal-card:active {
  cursor: grabbing;
}
.deal-card-title {
  font-size: 11px;
  font-weight: 730;
  line-height: 1.4;
  margin: 0 0 6px;
}
.deal-card-company {
  font-size: 10px;
  color: #8b98a8;
}
.deal-card-value {
  font-weight: 770;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: -0.3px;
}
.deal-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eff2f4;
  color: #99a6b7;
  font-size: 10px;
}
.deal-card-foot .avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
.deal-card-button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  color: inherit;
}
/* Shared Inbox and conversation panels */
.inbox-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 245px;
  min-height: 615px;
  overflow: hidden;
}
.thread-list {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.thread-search {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.thread-search .field-search {
  min-width: 0;
  width: 100%;
}
.thread {
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #f0f3f5;
  background: #fff;
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
}
.thread-body {
  flex: 1;
  min-width: 0;
}
.thread-title-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.thread-title-line strong {
  font-size: 11px;
}
.thread-title-line small {
  color: #9ba7b7;
  font-size: 9px;
}
.thread-subtitle,
.thread-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-subtitle {
  color: #697991;
  font-size: 10px;
  margin-top: 2px;
}
.thread-preview {
  color: #96a3b3;
  font-size: 10px;
  margin-top: 8px;
}
.conversation {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.conversation-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
}
.conversation-header strong {
  font-size: 12px;
}
.conversation-header small {
  display: block;
  color: #9ca7b6;
  font-size: 10px;
}
.conversation-body {
  flex: 1;
  background: #fcfdff;
  padding: 28px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 485px;
}
.message {
  max-width: 85%;
  align-self: flex-start;
}
.message.mine {
  align-self: flex-end;
}
.message-meta {
  font-size: 10px;
  color: #a3afbd;
  margin: 0 0 7px;
}
.message.mine .message-meta {
  text-align: right;
}
.bubble {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 3px 12px 12px;
  padding: 13px 15px;
  font-size: 11px;
  color: #5e6c80;
  line-height: 1.65;
}
.composer {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}
.composer textarea {
  width: 100%;
  min-height: 73px;
  resize: vertical;
  border: 1px solid #e5eaf1;
  padding: 11px;
  border-radius: 9px;
  font-size: 11px;
  outline: none;
}
.composer textarea:focus {
  border-color: #9aace7;
}
.composer-actions {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a1afbd;
  font-size: 10px;
}
.contact-context {
  padding: 25px 19px;
  border-left: 1px solid var(--line);
  background: #fff;
}
.contact-context h3 {
  margin: 0;
  font-size: 13px;
}
.contact-context p {
  font-size: 10px;
  color: #9ca8b5;
  margin: 4px 0 23px;
}
.context-section {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 17px;
}
.context-section > strong {
  font-size: 10px;
  color: #687991;
}
.context-line {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  font-size: 10px;
  color: #8591a2;
  align-items: flex-start;
  word-break: break-word;
}
.context-line svg {
  width: 14px;
  height: 14px;
}
.task-item:last-child {
  border-bottom: 0;
}
.task-tick svg {
  height: 12px;
  width: 12px;
}
.task-copy.done strong {
  text-decoration: line-through;
  color: #a3afbd;
}
.task-meta time.overdue {
  color: #d2656d;
}
.reports-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 17px;
  margin-top: 17px;
}
.automation-list {
  display: grid;
  gap: 13px;
  max-width: 1030px;
}
.automation-row {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.automation-icon svg {
  height: 20px;
  width: 20px;
}
.automation-copy {
  flex: 1;
}
.automation-copy h3 {
  margin: 0;
  font-size: 12px;
}
.automation-copy p {
  color: #909eae;
  font-size: 11px;
  margin: 5px 0 0;
}
.automation-last {
  color: #a6b0bd;
  font-size: 10px;
}
.toggle {
  appearance: none;
  border: 0;
  width: 35px;
  height: 20px;
  border-radius: 20px;
  background: #c8d0dc;
  position: relative;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px #0002;
}
.toggle[aria-checked='true']::after {
  transform: translateX(15px);
}
.settings-block {
  padding: 24px;
}
.settings-block h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.settings-block p {
  font-size: 11px;
  color: #96a2af;
  margin: 0 0 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* Forms, dialogs and inspectors */
.form-field {
  display: grid;
  gap: 7px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  font-size: 12px;
  color: #24344e;
  min-width: 0;
}
.form-field textarea {
  resize: vertical;
  min-height: 80px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #c3ccff;
  outline-offset: 1px;
}
.form-help {
  color: #a0aab7;
  font-size: 10px;
}
.settings-note svg {
  color: var(--accent);
  vertical-align: middle;
  margin-right: 4px;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(12, 23, 43, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.15s ease-out;
}
.dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 90px #0b1a3260;
  width: min(500px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.dialog-header {
  padding: 23px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.dialog-header h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0;
}
.dialog-header p {
  font-size: 11px;
  color: #92a0ae;
  margin: 5px 0 0;
}
.dialog-body {
  padding: 21px 24px;
}
.dialog-footer {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: #0b1a324f;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}
.sheet {
  width: min(440px, 100%);
  background: #fff;
  min-height: 100vh;
  box-shadow: -8px 0 30px #15274420;
  overflow-y: auto;
  animation: slideIn 0.18s ease-out;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 26px 23px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
  margin: 0;
}
.sheet-body {
  padding: 25px 26px;
}
.sheet-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.sheet-profile .avatar {
  height: 48px;
  width: 48px;
  font-size: 15px;
}
.sheet-profile strong {
  font-size: 15px;
}
.sheet-profile p {
  font-size: 11px;
  color: #91a0ad;
  margin: 4px 0 0;
}
.detail-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.detail-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.detail-row span {
  color: #97a3b3;
  font-size: 11px;
}
.detail-row strong {
  font-size: 11px;
  font-weight: 690;
  text-align: right;
  word-break: break-word;
}
.sheet-section-title {
  font-size: 12px;
  margin: 24px 0 14px;
}
.note-editor {
  width: 100%;
  min-height: 105px;
  resize: vertical;
  border: 1px solid #dde5ed;
  border-radius: 9px;
  padding: 12px;
  font-size: 11px;
}
.sheet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toast-stack {
  position: fixed;
  z-index: 60;
  bottom: 24px;
  right: 23px;
  display: grid;
  gap: 9px;
  max-width: min(390px, calc(100% - 30px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #192941;
  color: #fff;
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: 0 9px 35px #12213c33;
  font-size: 11px;
  animation: slideIn 0.18s ease-out;
}
.toast svg {
  width: 17px;
  height: 17px;
  color: #78e9c8;
}
.toast span {
  flex: 1;
}
.toast button {
  border: 0;
  background: none;
  color: #d0d9e7;
  padding: 0;
}
.toast button svg {
  width: 14px;
  height: 14px;
}
.command-input {
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  font-size: 15px;
  padding: 20px 24px;
  outline: 0;
}
.command-hint {
  font-size: 10px;
  color: #8d9aab;
  padding: 13px 23px;
}
.command-items {
  padding: 5px 10px 14px;
  display: grid;
  gap: 3px;
}
.command-item {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: #40526a;
}
.command-item:hover,
.command-item:focus-visible {
  background: #f1f5ff;
}
.command-item svg {
  color: #6682e2;
}
.command-item span {
  flex: 1;
}
.command-item small {
  color: #aab6c4;
  font-size: 10px;
}
.select-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mobile-inbox-back {
  display: none;
}
.center-note {
  color: #a1aeba;
  font-size: 11px;
  text-align: center;
  padding: 18px;
}
.overview-bottom /* Record tables and data-grid primitives */
.data-table {
  min-width: 540px;
}
.mini-pill {
  font-size: 9px;
  border-radius: 5px;
  background: #eff4fc;
  color: #70829e;
  padding: 4px 8px;
  font-weight: 690;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  max-height: 100vh;
  z-index: 20;
  width: 228px;
  flex: 0 0 228px;
  background: var(--sidebar);
  color: #a1b7ad;
}
.brand-row {
  display: flex;
  align-items: center;
  padding: 29px 23px 27px;
  gap: 12px;
}
.brand-symbol {
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  height: 39px;
  width: 39px;
  display: flex;
  place-items: center;
  justify-content: center;
  transform: none;
  position: static;
  background: #24362e;
  border-radius: 12px;
  flex: 0 0 auto;
}
.brand-glyph {
  height: 28px;
  width: 28px;
  stroke: none;
  color: #edf7f0;
}
.brand-word {
  color: #fff;
  font-size: 23px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -1.15px;
}
.brand-period {
  color: #93d9b7;
}
.workspace-picker {
  display: flex;
  align-items: center;
  border: 1px solid #30415d;
  color: #fff;
  text-align: left;
  margin: 0 13px 28px;
  width: calc(100% - 26px);
  background: #273630;
  border-color: #35463e;
  border-radius: 9px;
  padding: 10px;
  gap: 10px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #d9e4ce;
  color: #294638;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.workspace-copy strong {
  font-size: 12px;
}
.workspace-copy small {
  font-size: 10px;
  color: #8ca89a;
}
.nav-group-label {
  padding: 0 24px 8px;
  color: #6f8b7d;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1px;
}
.second-label {
  padding-top: 26px;
}
.main-nav {
  display: grid;
  padding: 0 10px;
  gap: 3px;
}
.nav-link {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  font-weight: 560;
  transition:
    background 0.15s,
    color 0.15s;
  border-radius: 8px;
  min-height: 39px;
  padding: 0 12px;
  font-size: 12px;
  gap: 12px;
  color: #adc1b5;
}
.nav-link svg {
  color: #859e91;
  width: 17px;
  height: 17px;
}
.nav-link:hover {
  background: #283b33;
  color: #fff;
}
.nav-link.is-active {
  background: #314a3f;
  color: #fff;
}
.nav-link.is-active svg {
  color: #c5ebd1;
}
.nav-link em {
  font-size: 9px;
  font-style: normal;
  padding: 2px 6px;
  border-radius: 5px;
  background: #c9e0cd;
  color: #244838;
  font-weight: 800;
}
.sidebar-bottom {
  padding: 10px 10px 14px;
}
.settings-link {
  margin-bottom: 9px;
}
.user-tile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #2b3b54;
  border-color: #36473e;
  padding: 14px 10px 4px;
}
.user-tile small {
  color: #8ea99a;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: 64px;
  min-height: 64px;
  padding: 0 34px;
  border-color: var(--line);
}
.top-workspace {
  white-space: nowrap;
  font-size: 12px;
  color: #68776e;
}
.top-slash {
  color: #bbc8bd;
}
.top-left strong {
  font-size: 12px;
  white-space: nowrap;
  color: #2b4035;
  font-weight: 650;
}
.top-actions {
  gap: 14px;
}
.top-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #778d7c;
  font-size: 10px;
  white-space: nowrap;
}
.top-demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60b594;
}
.global-search {
  height: 35px;
  border: 1px solid #e9edf3;
  color: #95a1b0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  text-align: left;
  background: #f8faf8;
  border-color: #e5eae7;
  border-radius: 7px;
  width: 225px;
  font-size: 11px;
}
.global-search:hover {
  background: #f2f6f2;
}
.top-avatar {
  height: 31px;
  width: 31px;
  background: #e6e9df;
  color: #395040;
}
.content {
  width: 100%;
  margin: 0 auto;
  flex: 1;
  max-width: 1560px;
  padding: 30px 34px 58px;
}
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
  margin-bottom: 23px;
  flex-wrap: nowrap;
}
.page-title {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.9px;
  font-weight: 730;
  line-height: 1.2;
}
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 14px;
  height: 36px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #495971;
  transition:
    background 0.15s,
    border-color 0.15s;
  border-radius: 7px;
  min-height: 36px;
  font-size: 11px;
  font-weight: 640;
}
.btn.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
.btn:hover {
  background: #f2f6f2;
  border-color: #d3ddd4;
}
.btn.primary:hover {
  background: var(--accentdark);
  border-color: var(--accentdark);
  color: #fff;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
  border-color: var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.panel {
  padding: 23px 23px 24px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  align-items: center;
}
.panel-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 730;
  letter-spacing: -0.28px;
  line-height: 1.35;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: none;
}
.text-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  background: none;
  border: 0;
  font-size: 11px;
  color: var(--accent);
}
.text-button:hover {
  color: var(--accentdark);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 21px 21px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #78867c;
  font-size: 11px;
  font-weight: 550;
}
.metric-value {
  font-variant-numeric: tabular-nums;
  font-size: 29px;
  line-height: 1.13;
  margin: 14px 0 0;
  color: #202d29;
  letter-spacing: -1.1px;
  font-weight: 730;
}
.metric-detail {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.metric-head svg {
  height: 17px;
  width: 17px;
  color: #a8b3c1;
  display: none;
}
.stage-list {
  display: grid;
  gap: 0;
}
.stage-row:first-child {
  border-top: none;
  padding-top: 3px;
}
.stage-row:hover {
  background: #fbfdfb;
}
.stage-row svg {
  width: 14px;
  height: 14px;
  color: #adbdb2;
}
.stage-title {
  font-weight: 660;
  font-size: 12px;
  white-space: nowrap;
}
.stage-title small {
  display: block;
  color: #9aa89e;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}
.stage-rail {
  height: 8px;
  display: block;
  border-radius: 8px;
  background: #edf1ec;
  overflow: hidden;
}
.stage-fill {
  height: 100%;
  display: block;
  background: var(--stage-color);
  border-radius: 8px;
  transition: width 0.2s;
}
.stage-row > strong {
  text-align: right;
  font-size: 12px;
  font-weight: 690;
  font-variant-numeric: tabular-nums;
}
.task-copy {
  min-width: 0;
  flex: 1;
}
.task-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 660;
  line-height: 1.4;
}
.task-copy small {
  font-size: 10px;
  color: #94a098;
  margin-top: 3px;
  display: block;
}
.opportunity {
  border: 1px solid #e8ede7;
  border-radius: 10px;
  background: #fff;
  min-width: 0;
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 135px;
}
.opportunity:hover {
  background: #f8fbf8;
  border-color: #cddfd0;
}
.opportunity > strong {
  font-size: 12px;
  font-weight: 710;
  white-space: normal;
  line-height: 1.4;
}
.opportunity .status {
  font-size: 9px;
}
.reporting-body {
  grid-template-columns: minmax(0, 1.36fr) minmax(330px, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.team-list {
  display: grid;
}
.team-row:first-child {
  border-top: 0;
  padding-top: 3px;
}
.team-row:hover {
  background: #fafcf9;
}
.team-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.team-info strong {
  font-size: 11px;
}
.team-info small {
  font-size: 10px;
  color: #96a39a;
}
.team-track {
  height: 5px;
  background: #edf1ed;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
}
.team-track i {
  display: block;
  height: 100%;
  background: #4c9582;
  border-radius: 5px;
}
.team-row > b {
  font-weight: 710;
  font-size: 11px;
}
.team-row svg {
  width: 14px;
  height: 14px;
  color: #acbaaf;
}
.attention-section {
  margin-top: 14px;
}
.attention-table {
  display: grid;
}
.attention-row:first-child {
  border-top: 0;
}
.attention-row:hover {
  background: #f9fcf9;
}
.attention-row > span:first-child strong {
  font-size: 12px;
  display: block;
}
.attention-row > span:first-child small {
  font-size: 10px;
  color: #94a098;
  display: block;
  margin-top: 2px;
}
.attention-row > strong {
  font-size: 12px;
  text-align: right;
}
.attention-row > svg {
  width: 14px;
  height: 14px;
  color: #a2b3a7;
}
.data-card {
  overflow: hidden;
}
.table-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 17px 20px;
  gap: 12px;
}
.filter-select {
  appearance: none;
  padding: 0 28px 0 12px;
  height: 36px;
  border: 1px solid #e5ebf0;
  background: #fff
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%238a97aa" stroke-width="1.6" viewBox="0 0 24 24"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E')
    right 8px center/14px no-repeat;
  font-size: 11px;
  color: #596981;
  cursor: pointer;
  border-radius: 7px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 690px;
  font-size: 11px;
}
.data-table th {
  font-size: 10px;
  white-space: nowrap;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.15px;
  color: #85938a;
  font-weight: 600;
}
.data-table td {
  border-bottom: 1px solid #f0f3f6;
  padding: 14px 17px;
  white-space: nowrap;
  vertical-align: middle;
  border-color: #f0f3ef;
}
.table-footer {
  border-top: 1px solid #eef2f6;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #94a298;
  font-size: 10px;
}
.table-link {
  background: none;
  border: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 0;
  font-size: 11px;
}
.pipeline-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f9084;
  font-size: 11px;
  margin: -7px 0 16px;
}
.pipeline-hint svg {
  width: 14px;
  height: 14px;
}
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  align-items: start;
  overflow-x: auto;
  padding-bottom: 16px;
  gap: 12px;
}
/* Deal pipeline and Kanban */
.pipeline-col {
  min-height: 410px;
  background: #f1f3ef;
  border: 1px solid #e7ebe6;
  border-radius: 10px;
  padding: 10px;
}
.pipeline-col-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 4px 11px;
}
.deal-card {
  background: #fff;
  border: 1px solid #e6ebf0;
  margin-bottom: 10px;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(25, 41, 60, 0.03);
  border-color: #e5eae4;
  border-radius: 9px;
  padding: 15px;
}
.deal-card:hover {
  box-shadow: 0 6px 15px #16223910;
  border-color: #a8c6b2;
}
.task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.task-toolbar .segment {
  padding: 3px;
  background: #ebefeb;
}
.task-toolbar .segment button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  font-size: 11px;
}
.tab-count {
  font-size: 10px;
  color: #8d9c90;
  font-weight: 640;
}
.segment .is-active .tab-count {
  color: var(--accent);
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa69b;
  font-size: 11px;
}
.sort-control select {
  border: 1px solid var(--line);
  padding: 8px 24px 8px 10px;
  border-radius: 7px;
  background: #fff;
  color: #506557;
  font-size: 11px;
}
/* Task lists and priority states */
.task-groups {
  display: grid;
  max-width: none;
  gap: 24px;
}
.task-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 2px;
}
.task-group-header strong {
  font-size: 12px;
  font-weight: 700;
}
.task-group-header span {
  color: #a2aebe;
  font-size: 10px;
}
.task-list {
  padding: 3px 19px;
}
.task-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f2f5;
  padding: 15px 0;
  gap: 14px;
  min-height: 67px;
}
.task-tick {
  border: 1.5px solid #b6c2d2;
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-color: #b5c9b8;
  border-radius: 6px;
}
.task-tick.done {
  color: #fff;
  background: #398c70;
  border-color: #398c70;
}
.task-meta {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 17px;
}
.task-meta time {
  font-size: 10px;
  color: #8f9bab;
  width: 65px;
  text-align: right;
}
.priority-label {
  font-size: 10px;
  color: #6d8171;
  min-width: 65px;
  text-align: center;
  border-radius: 5px;
  background: #f0f5ed;
  padding: 3px 6px;
}
.priority-high {
  color: #b3743a;
  background: #fff3e8;
}
.priority-low {
  color: #89978c;
  background: #f5f6f3;
}
.completed-label {
  font-size: 10px;
  color: #8d9f93;
  min-width: 65px;
  text-align: center;
}
.task-item.is-complete .task-copy strong {
  color: #92a198;
  text-decoration: line-through;
  text-decoration-color: #b3bfb5;
}
.task-item.is-complete .task-meta time {
  color: #b3bdb5;
}
.task-edit {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #abb8ad;
  width: 28px;
  height: 28px;
}
.task-edit:hover {
  color: #245742;
  background: #f1f6f0;
}
.task-edit svg {
  width: 16px;
  height: 16px;
}
.tasks-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px;
}
.empty-check {
  color: #4a9b76;
}
.tasks-empty h2 {
  font-size: 15px;
  margin: 10px 0 4px;
}
.tasks-empty p {
  font-size: 11px;
  color: #8e9c93;
  margin: 0 0 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(240px, 320px);
  gap: 18px;
  align-items: start;
  max-width: none;
}
.form-field label {
  font-size: 11px;
  color: #59697f;
  font-weight: 650;
}
.settings-note {
  border-radius: 10px;
  border: 1px solid #e3eafe;
  padding: 14px;
  font-size: 11px;
  line-height: 1.7;
  background: #f3f6f2;
  color: #718378;
  border-color: #e5eae3;
}
.automation-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #e7f2ea;
}
.toggle[aria-checked='true'] {
  background: var(--accent);
}
.thread.is-active {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
  border-left-color: var(--accent);
  background: #f1f7f2;
}
.thread:hover {
  background: #f8fbf7;
}
.thread-unread {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  margin-top: 15px;
  flex-shrink: 0;
  background: var(--accent);
}
.message.mine .bubble {
  border-radius: 12px 3px 12px 12px;
  background: #edf7ef;
  border-color: #e1efe4;
  color: #3b6550;
}
.callout {
  padding: 13px 15px;
  background: #f2f5ff;
  border: 1px solid #e2e9ff;
  border-radius: 9px;
  color: #647599;
  margin: 15px 0;
  font-size: 11px;
}
.status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  font-weight: 670;
  font-size: 10px;
  background: #eef2fc;
  color: #5f74b3;
  border-radius: 5px;
}
.nav-link em[hidden],
.notification-dot[hidden] {
  display: none !important;
}
.mobile-record-list {
  display: none;
}
.table-shell {
  overflow: auto;
  max-width: 100%;
  border-radius: 0 0 13px 13px;
  position: relative;
}
.mobile-pipeline,
.mobile-pipeline-hint {
  display: none;
}
:is(.stage-row, .team-row, .attention-row) {
  position: relative;
  isolation: isolate;
}
:is(.stage-row, .team-row, .attention-row)::before {
  content: '';
  position: absolute;
  inset: 3px 4px;
  z-index: 0;
  border-radius: 7px;
  background: #f2f7f2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
:is(.stage-row, .team-row, .attention-row):is(:hover, :focus-visible)::before {
  opacity: 1;
}
:is(.stage-row, .team-row, .attention-row) > * {
  position: relative;
  z-index: 1;
}
.stage-row {
  width: 100%;
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 94px 13px;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border: 0;
  border-top: 1px solid #f1f3f0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding-inline: 12px;
}
.team-row {
  border: 0;
  border-top: 1px solid #eef1ec;
  background: none;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) auto 14px;
  gap: 11px;
  align-items: center;
  padding: 15px 0;
  text-align: left;
  width: 100%;
  color: var(--ink);
  padding-inline: 12px;
}
.attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px 16px;
  gap: 16px;
  align-items: center;
  border: 0;
  background: none;
  border-top: 1px solid #f0f3ef;
  padding: 13px 2px;
  width: 100%;
  text-align: left;
  color: inherit;
  padding-inline: 12px;
}
:is(.stage-row, .team-row, .attention-row):hover {
  background: transparent;
}
.data-card .table-shell {
  padding-inline: 10px;
}
.data-card .data-table {
  border-collapse: separate;
  border-spacing: 0;
}
.data-card .data-table tbody tr:hover {
  background: transparent;
}
.data-card .data-table tbody tr:is(:hover, :focus-within) td {
  background: #f5f9f5;
}
.data-card .data-table tbody tr:is(:hover, :focus-within) td:first-child {
  border-radius: 7px 0 0 7px;
}
.data-card .data-table tbody tr:is(:hover, :focus-within) td:last-child {
  border-radius: 0 7px 7px 0;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Responsive layout and density adjustments */
@media (max-width: 1350px) {
  .inbox-layout {
    grid-template-columns: 275px minmax(0, 1fr);
  }
  .contact-context {
    display: none;
  }
}
@media (max-width: 1020px) {
  .sidebar {
    width: 210px;
    flex-basis: 210px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }
  .inbox-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar.is-open {
    transform: translateX(0);
  }
  .mobile-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: #1322387a;
    z-index: 15;
  }
  .mobile-menu,
  .sidebar-close {
    display: grid;
  }
  .sidebar-close {
    margin-left: auto;
    color: #adbed0;
  }
  .top-left {
    gap: 8px;
  }
  .top-actions {
    gap: 14px;
  }
  .top-workspace,
  .top-slash {
    display: none;
  }
  .global-search {
    width: 37px;
    min-width: 37px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
  }
  .global-search span,
  .global-search kbd {
    display: none;
  }
  .header-actions .demo-label {
    margin-right: auto;
  }
  .metrics-grid {
    gap: 10px;
  }
  .metric-card {
    padding: 15px;
  }
  .metric-value {
    font-size: 24px;
  }

  .reports-grid {
  }
  .inbox-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 580px;
  }
  .inbox-layout.mobile-conversation {
    grid-template-columns: 1fr;
  }
  .inbox-layout.mobile-conversation .thread-list {
    display: none;
  }
  .inbox-layout.mobile-conversation .mobile-inbox-back {
    display: inline-flex;
  }
  .inbox-layout:not(.mobile-conversation) .conversation {
    display: none;
  }
  .inbox-layout:not(.mobile-conversation) {
    grid-template-columns: 1fr;
  }
  .inbox-layout .thread-list {
    max-height: 650px;
    overflow-y: auto;
  }
  .conversation-body {
    min-height: 380px;
  }
}
@media (max-width: 410px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 23px;
  }
  .page-title {
    font-size: 23px;
  }
  .panel-header {
    align-items: flex-start;
  }
  .segment button {
    padding: 5px 7px;
  }
  .filter-select {
    max-width: 155px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .task-meta {
    gap: 4px;
  }
  .task-meta time {
    display: none;
  }
  .top-avatar {
    height: 28px;
    width: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1350px) {
  .sidebar {
    width: 216px;
    flex-basis: 216px;
  }
  .content {
    padding: 26px 27px 48px;
  }
  .topbar {
    padding: 0 27px;
  }
}
@media (max-width: 1080px) {
  .reporting-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 25px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    box-shadow: 10px 0 50px #091c3440;
    transition: transform 0.2s;
    max-height: none;
    transform: translateX(-110%);
    bottom: 0;
    top: 0;
    left: 0;
    position: fixed;
    width: 264px;
    flex-basis: 264px;
  }
  .content {
    padding: 24px 16px 38px;
  }
  .topbar {
    padding: 0 16px;
    height: 58px;
    min-height: 58px;
  }
  .top-demo {
    display: none;
  }
  .page-title {
    font-size: 25px;
  }
  .content-header {
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
  }
  .header-actions {
    gap: 8px;
    width: auto;
    margin-left: auto;
  }

  .reporting-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 19px;
  }
  .stage-row {
    grid-template-columns: 96px minmax(0, 1fr) 75px 12px;
    gap: 9px;
  }
  .stage-title {
    font-size: 11px;
  }
  .stage-row > strong {
    font-size: 11px;
  }
  .team-list {
    grid-template-columns: 1fr;
  }
  .attention-row {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 10px;
  }
  .attention-row .status {
    display: none;
  }
  .task-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .task-meta {
    gap: 8px;
  }
  .task-meta time {
    display: none;
  }
}
@media (max-width: 440px) {
  .content-header {
    align-items: flex-start;
  }
  .header-actions .btn {
    height: 34px;
    padding: 0 10px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-card {
    min-height: 105px;
    padding: 16px;
  }
  .metric-value {
    font-size: 23px;
  }
  .opportunity {
    min-height: 116px;
  }
  .stage-row {
    grid-template-columns: 77px minmax(0, 1fr) 69px;
    gap: 7px;
  }
  .stage-row > svg {
    display: none;
  }
  .stage-title small {
    font-size: 9px;
  }
  .task-toolbar .segment button {
    padding: 0 9px;
    gap: 5px;
    font-size: 10px;
  }
  .tab-count {
    font-size: 9px;
  }
  .sort-control {
    margin-left: auto;
  }
  .task-list {
    padding: 2px 12px;
  }
  .priority-label,
  .completed-label {
    min-width: 48px;
  }
  .task-meta {
    gap: 4px;
  }
  .team-row {
    grid-template-columns: 30px minmax(0, 1fr) auto 10px;
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .topbar .global-search {
    width: 35px;
    min-width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    padding: 0;
  }
  .topbar .global-search span,
  .topbar .global-search kbd {
    display: none;
  }
  .topbar .global-search svg {
    width: 18px;
    height: 18px;
  }
  .table-shell {
    display: none;
  }
  .mobile-record-list {
    display: grid;
    border-top: 1px solid var(--line);
  }
  .mobile-record {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e9eee9;
    color: var(--ink);
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .mobile-record:last-child {
    border-bottom: 0;
  }
  .mobile-record:hover,
  .mobile-record:focus-within {
    background: #f8fbf8;
  }
  .mobile-record .checkbox {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 12px;
  }
  .record-action {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    color: inherit;
    display: grid;
    gap: 12px;
  }
  .record-head {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
  }
  .record-head > svg {
    width: 14px;
    height: 14px;
    color: #9aaca0;
    margin-left: auto;
  }
  .record-title {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 4px;
  }
  .record-title strong {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .record-title small {
    color: #8b9990;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .record-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #45564b;
    font-variant-numeric: tabular-nums;
  }
  .record-foot b {
    font-size: 12px;
  }
  .record-secondary {
    font-size: 10px;
    color: #8b9a90;
  }
  .deal-record {
    display: grid;
    gap: 10px;
  }
  .mobile-empty {
    padding: 23px;
    text-align: center;
    font-size: 12px;
    color: #819286;
  }
  .mobile-empty .text-button {
    margin-left: 8px;
  }
  .data-card .table-footer {
    padding: 14px 16px;
  }
  .table-top {
    padding: 15px 16px;
  }
  .filter-row {
    width: 100%;
    gap: 8px;
    min-width: 0;
  }
  .filter-row .field-search {
    flex: 1;
    min-width: 140px;
  }
  .data-card .filter-select {
    min-width: 0;
    max-width: 150px;
  }
}
@media (max-width: 440px) {
  .table-top .filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }
  .table-top .field-search {
    grid-column: 1/-1;
    width: 100%;
    max-width: none;
  }
  .table-top .filter-select {
    width: 100%;
    max-width: none;
  }
  .table-top .select-group {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  .pipeline-board {
    display: none;
  }
  .pipeline-hint:not(.mobile-pipeline-hint) {
    display: none;
  }
  .mobile-pipeline-hint {
    display: flex;
    margin: -4px 0 15px;
    color: #718a79;
    font-size: 11px;
  }
  .mobile-pipeline {
    display: block;
  }
  .mobile-stage-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding: 1px 1px 11px;
  }
  .mobile-stage-tab {
    flex: 0 0 auto;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #6c7f73;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 680;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-stage-tab.is-active {
    border-color: #286e56;
    background: #286e56;
    color: #fff;
  }
  .mobile-stage-tab small {
    font-size: 10px;
    border-radius: 5px;
    background: #eef3ee;
    color: #788f7e;
    padding: 1px 5px;
  }
  .mobile-stage-tab.is-active small {
    background: #42846b;
    color: #fff;
  }
  .mobile-stage-cards {
    display: grid;
    gap: 9px;
  }
  .mobile-pipeline-deal {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 17px;
    display: grid;
    gap: 18px;
    text-align: left;
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .mobile-pipeline-deal:hover {
    background: #f9fcf9;
  }
  .mobile-pipeline-deal .record-foot > svg {
    width: 15px;
    height: 15px;
    color: #91a99b;
  }
}
@media (max-width: 760px) {
  .data-card .mobile-record-list {
    padding-inline: 8px;
  }
  .data-card .mobile-record {
    border-radius: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.stage-row, .team-row, .attention-row)::before {
    transition-duration: 0.001ms;
  }
}
