:root {
  --bg: #f8f9fa;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --panel: #ffffff;
  --primary: #d10932;
  --primary-dark: #9f0626;
  --ink: #050505;
  --soft-red: #fde8ed;
  --soft-black: #f1f1f1;
  --soft-blue: #e8f0f8;
  --soft-green: #e9f6ef;
  --soft-purple: #f1ecff;
  --blue: #3a6ea5;
  --green: #2f7d4f;
  --purple: #5a4a86;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

body.auth-pending .topbar,
body.auth-pending main {
  display: none;
}

body.is-authenticated .login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 249, 250, .98)),
    var(--bg);
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}

.login-logo {
  width: 154px;
  height: auto;
}

.login-card h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.login-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.login-error {
  min-height: 18px;
  color: var(--primary);
  font-size: 13px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-accent-red {
  stroke: currentColor;
}

.icon-accent-red-fill {
  fill: currentColor;
  stroke: none;
}

.icon-accent-green-fill {
  fill: currentColor;
  stroke: none;
}

.icon-accent-yellow,
.icon-accent-yellow-fill {
  stroke: currentColor;
}

.icon-accent-yellow-fill {
  fill: currentColor;
  stroke: none;
}

.icon-accent-white {
  stroke: var(--panel);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 7px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.mobile-drawer,
.mobile-drawer-head,
.mobile-menu-toggle,
.mobile-backdrop,
.mobile-filter-summary {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 224px;
}

.brand-home {
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-home:hover {
  opacity: .86;
}

.brand-logo {
  width: 112px;
  height: auto;
  display: block;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 13px;
  line-height: 1.2;
}

.brand span {
  font-size: 12px;
  line-height: 1.2;
}

.brand span,
.muted {
  color: var(--muted);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  align-items: center;
}

.tab,
.ghost {
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  padding: 7px 11px;
  color: #5f6368;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
}

.tab .nav-icon,
.actions .nav-icon,
.admin-icon {
  color: #4b525a;
}

.tab.is-active .nav-icon,
.tab:hover .nav-icon,
.actions button:hover .nav-icon,
.admin-menu summary:hover .nav-icon {
  color: currentColor;
}

.capture-tab {
  margin-left: 14px;
}

.settings-tab {
  margin-left: 10px;
}

.capture-tab::after,
.settings-tab::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 1px;
  height: 28px;
  transform: translateY(-50%);
  background: var(--line);
}

.tab.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.action-separator {
  color: var(--line);
  font-size: 24px;
  line-height: 1;
}

.view-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary {
  background: var(--primary);
  color: #fff;
  min-height: 34px;
  padding: 7px 12px;
  font-weight: 600;
}

.primary:hover {
  background: var(--primary-dark);
}

.ghost {
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 400;
  min-height: 34px;
}

.actions #newProspect,
.actions #newLead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 400;
}

.actions #newProspect:hover,
.actions #newLead:hover {
  background: transparent;
  color: var(--muted);
}

.admin-menu {
  position: relative;
}

.admin-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  list-style: none;
  cursor: pointer;
}

.admin-menu summary::-webkit-details-marker {
  display: none;
}

.session-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #303134;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.session-user {
  display: grid;
  gap: 1px;
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  text-align: right;
}

.session-user strong,
.session-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-user strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
}

.session-user span {
  color: var(--muted);
  font-size: 10px;
}

.admin-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.admin-menu-panel button {
  min-height: 34px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 400;
}

.admin-menu-panel button:hover {
  background: #f8f9fa;
  color: var(--primary);
}

.is-staff [data-manager-only] {
  display: none;
}

.locked-field {
  opacity: .78;
}

.tab:hover {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}

.tab.is-active:hover {
  background: transparent;
  color: var(--muted);
}

.danger {
  background: var(--soft-red);
  color: var(--primary-dark);
  padding: 7px 12px;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px) 40px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(120px, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}

.custom-date-field {
  display: none;
}

.custom-date-field.is-visible {
  display: grid;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
}

select {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6368 50%),
    linear-gradient(135deg, #5f6368 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(209, 9, 50, .14);
}

textarea {
  resize: vertical;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric,
.panel,
.table-shell,
.kanban-column {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 0 13px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: none;
}

.metric:last-child {
  border-right: 1px solid var(--line);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  display: block;
  height: 31px;
  background: var(--metric-color, #9aa0a6);
}

.metric-filter {
  --metric-color: #9aa0a6;
}

.metric-active {
  --metric-color: #1a73e8;
}

.metric-won {
  --metric-color: #f57c00;
}

.metric-discarded {
  --metric-color: #d10932;
}

.metric-ticket {
  --metric-color: #f9ab00;
  --metric-title-color: #202124;
}

.metric-sold {
  --metric-color: #0f9d58;
}

.metric span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 31px;
  margin: 0 -13px;
  padding: 0 13px;
  color: var(--metric-title-color, #fff);
  font-size: 12px;
  font-weight: 500;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0;
}

.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-note {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--panel);
}

.notice-panel .section-title {
  margin-bottom: 12px;
}

.notice-panel.is-collapsed .section-title {
  margin-bottom: 0;
}

.notice-toggle {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(32, 33, 36, .18);
  background: rgba(255, 255, 255, .25);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.notice-toggle:hover {
  border-color: rgba(32, 33, 36, .32);
  background: rgba(255, 255, 255, .45);
  color: var(--text);
}

.notice-panel.is-collapsed .notice-board {
  display: none;
}

.notice-admin-grid {
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
}

.notice-form {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(180px, 1fr) minmax(260px, 2fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.notice-admin-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-bottom: 0;
}

.notice-message-field textarea {
  min-height: 34px;
}

.notice-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.notice-item {
  border: 1px solid #f1d888;
  border-radius: 6px;
  padding: 12px;
  background: #fff8d7;
}

.notice-item span,
.notice-item small {
  display: block;
  color: #5f6368;
  font-size: 11px;
  font-weight: 500;
}

.notice-item strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-weight: 500;
}

.notice-item p {
  margin: 6px 0;
  color: #3c4043;
}

.notice-admin-list {
  display: grid;
  gap: 8px;
}

.notice-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.notice-admin-item span,
.notice-admin-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.notice-admin-item strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-weight: 500;
}

.notice-admin-item p {
  margin: 6px 0;
  color: var(--muted);
}

.dashboard-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-grid {
  align-items: stretch;
}

.dashboard-grid .panel {
  height: 100%;
}

.settings-grid {
  align-items: start;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "trend status"
    "funnel funnel"
    "followup owners"
    "channels owners"
    "capture capture"
    "reactivation reactivation";
  gap: 12px;
  align-items: start;
}

.analytics-wide {
  grid-column: 1 / -1;
}

.analytics-trend-panel {
  grid-area: trend;
}

.analytics-status-panel {
  grid-area: status;
}

.analytics-funnel-panel {
  grid-area: funnel;
  padding-bottom: 10px;
}

.analytics-funnel-panel .section-title {
  margin-bottom: 6px;
}

.analytics-followup-panel {
  grid-area: followup;
}

.analytics-owners-panel {
  grid-area: owners;
  height: 100%;
}

.analytics-channel-panel {
  grid-area: channels;
}

.analytics-capture-panel {
  grid-area: capture;
}

.analytics-reactivation-panel {
  grid-area: reactivation;
}

.chart-legend {
  display: flex;
  gap: 14px;
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-blue {
  background: #1a73e8;
}

.legend-orange {
  background: #f57c00;
}

.trend-chart {
  min-height: 170px;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid line {
  stroke: #eef0f2;
  stroke-width: 1;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-leads {
  stroke: #1a73e8;
}

.trend-sales {
  stroke: #f57c00;
}

.chart-labels text {
  fill: var(--muted);
  font-size: 11px;
}

.donut-shell {
  display: grid;
  grid-template-columns: 170px minmax(260px, 520px);
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 188px;
}

.donut-chart svg {
  display: block;
  width: 100%;
  max-width: 160px;
}

.donut-chart circle {
  fill: none;
  stroke-width: 14;
}

.donut-base {
  stroke: #eef0f2;
}

.donut-chart text:first-of-type {
  fill: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.donut-chart text:last-of-type {
  fill: var(--muted);
  font-size: 10px;
}

.donut-legend {
  display: grid;
  gap: 8px;
  width: 100%;
}

.donut-legend div {
  display: grid;
  grid-template-columns: 9px minmax(160px, 1fr) 38px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.donut-legend strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.panel {
  padding: 15px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.panel-note {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bars {
  display: grid;
  gap: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eef0f2;
}

.bar-row:last-child {
  border-bottom: 0;
}

.bar-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bar-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa0a6;
}

.bar-share {
  color: #8a8d91;
  font-size: 12px;
}

.bar-count {
  min-width: 34px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.fill {
  height: 100%;
  background: #cfd3d8;
  border-radius: 999px;
}

.fill-gray {
  background: #9aa0a6;
}

.fill-blue {
  background: #1a73e8;
}

.fill-green {
  background: #188038;
}

.fill-mint {
  background: #0f9d58;
}

.fill-red {
  background: #d10932;
}

.fill-yellow {
  background: #f9ab00;
}

.owner-table {
  display: grid;
  gap: 10px;
}

.funnel-list {
  display: grid;
  gap: 0;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(220px, 1.85fr) 44px;
  gap: 12px;
  align-items: center;
  min-height: 27px;
  padding: 4px 0;
  border-bottom: 1px solid #eef0f2;
}

.funnel-row:last-child {
  border-bottom: 0;
}

.funnel-meta span,
.funnel-meta small {
  display: block;
}

.analytics-funnel-panel .funnel-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.analytics-funnel-panel .funnel-meta span,
.analytics-funnel-panel .funnel-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-meta span {
  color: var(--text);
  font-weight: 500;
}

.funnel-meta small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-funnel-panel .funnel-meta small {
  margin-top: 0;
  font-size: 11px;
}

.funnel-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  background: #f8f9fa;
}

.funnel-track span {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--funnel-color, #202124);
}

.funnel-row strong {
  text-align: right;
  font-weight: 500;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.risk-card {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.risk-card span,
.risk-card small {
  display: block;
  color: var(--muted);
}

.risk-card span {
  font-size: 12px;
  font-weight: 500;
}

.risk-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 500;
}

.risk-card small {
  margin-top: 4px;
  font-size: 12px;
}

.risk-bad {
  border-top: 3px solid #d10932;
}

.risk-warn {
  border-top: 3px solid #f9ab00;
}

.risk-neutral {
  border-top: 3px solid #9aa0a6;
}

.risk-info {
  border-top: 3px solid #1a73e8;
}

.analytics-table {
  overflow-x: auto;
}

.staff-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 190px;
  margin-bottom: 14px;
  padding: 8px 0 12px;
  border-bottom: 1px solid #eef0f2;
}

.staff-chart article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 178px;
  min-width: 0;
  text-align: center;
}

.staff-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  height: 118px;
  padding: 0 12px;
  border-bottom: 1px solid #cfd3d8;
  background: linear-gradient(to top, #f8f9fa, #fff);
}

.staff-bar-track span {
  display: block;
  width: min(46px, 100%);
  min-height: 3px;
  border-radius: 5px 5px 0 0;
}

.staff-chart strong,
.staff-chart small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-chart strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.staff-chart small {
  color: var(--muted);
  font-size: 11px;
}

.staff-name-full {
  display: none;
}

.channel-chart {
  display: grid;
  gap: 12px;
}

.channel-chart-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(120px, 1fr) 36px;
  gap: 10px;
  align-items: center;
}

.channel-chart-row strong,
.channel-chart-row small {
  display: block;
}

.channel-chart-row strong {
  color: var(--text);
  font-weight: 500;
}

.channel-chart-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.channel-track {
  height: 18px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #f8f9fa;
}

.channel-track span {
  display: block;
  height: 100%;
  min-width: 2px;
}

.channel-chart-row em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
  text-align: right;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(92px, 1fr));
  gap: 12px;
  align-items: center;
  min-width: 720px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
  color: var(--muted);
}

.analytics-row:last-child {
  border-bottom: 0;
}

.analytics-row strong {
  color: var(--text);
  font-weight: 500;
}

.analytics-row > * {
  justify-self: stretch;
  text-align: center;
}

.analytics-row > :first-child {
  text-align: left;
}

.analytics-head {
  padding-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
}

.capture-ratio {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.capture-ring {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(#0f9d58 var(--ratio), #eef0f2 0);
  text-align: center;
}

.capture-ring strong,
.capture-ring span,
.capture-ratio > div:last-child strong,
.capture-ratio > div:last-child span {
  display: block;
}

.capture-ring strong {
  font-size: 22px;
  font-weight: 600;
}

.capture-ring span {
  max-width: 82px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.capture-ratio > div:last-child strong {
  font-size: 20px;
  font-weight: 500;
}

.capture-ratio > div:last-child span {
  margin-top: 4px;
  color: var(--muted);
}

.analytics-kpis article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
}

.analytics-kpis span,
.analytics-kpis strong {
  display: block;
}

.analytics-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.analytics-kpis strong {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 500;
}

.capture-type-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.capture-type-list div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
}

.capture-type-list span,
.capture-type-list strong,
.capture-type-list small {
  display: block;
}

.capture-type-list span,
.capture-type-list small {
  color: var(--muted);
  font-size: 12px;
}

.capture-type-list strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
}

.reactivation-ranking {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.reactivation-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.podium-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  background: #fff;
}

.podium-card span,
.podium-card strong,
.podium-card small {
  display: block;
}

.podium-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.podium-card strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.podium-card small {
  margin-top: 4px;
  color: var(--muted);
}

.podium-1 {
  border-top: 4px solid #f57c00;
}

.podium-2 {
  border-top: 4px solid #1a73e8;
}

.podium-3 {
  border-top: 4px solid #188038;
}

.reactivation-table {
  overflow-x: auto;
}

.reactivation-row {
  display: grid;
  grid-template-columns: 70px minmax(140px, 1fr) repeat(5, minmax(92px, .8fr)) minmax(150px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-width: 920px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
  color: var(--muted);
}

.reactivation-row:last-child {
  border-bottom: 0;
}

.reactivation-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.reactivation-row > * {
  text-align: center;
}

.reactivation-row > :nth-child(2) {
  text-align: left;
}

.reactivation-row strong {
  color: var(--text);
  font-weight: 600;
}

.score-bar {
  display: inline-block;
  width: 72px;
  height: 8px;
  overflow: hidden;
  margin-right: 8px;
  border-radius: 999px;
  background: #eef0f2;
  vertical-align: middle;
}

.score-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d10932;
}

.owner-row {
  display: grid;
  grid-template-columns: 1fr 70px 70px 90px;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.owner-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.follow-ups {
  display: grid;
  gap: 10px;
}

.follow-item,
.lead-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  background: #fff;
}

.table-shell {
  overflow: auto;
}

.sales-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.sales-total {
  min-width: 180px;
  border: 1px solid var(--line);
  border-top: 3px solid #0f9d58;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: right;
}

.sales-total strong,
.sales-total span {
  display: block;
}

.sales-total strong {
  font-size: 22px;
  font-weight: 500;
}

.sales-total span {
  margin-top: 4px;
  color: var(--muted);
}

.commercial-controls label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.commercial-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.commercial-metrics article {
  min-height: 88px;
  border: 1px solid var(--line);
  border-top: 3px solid #9aa0a6;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
}

.commercial-metrics article:nth-child(2) {
  border-top-color: #0f9d58;
}

.commercial-metrics article:nth-child(3) {
  border-top-color: #1a73e8;
}

.commercial-metrics article:nth-child(4) {
  border-top-color: #d10932;
}

.commercial-metrics article:nth-child(5) {
  border-top-color: #f57c00;
}

.commercial-metrics article:nth-child(6) {
  border-top-color: #188038;
}

.commercial-metrics article:nth-child(7) {
  border-top-color: #0f9d58;
}

.commercial-metrics span,
.commercial-metrics strong,
.commercial-metrics small {
  display: block;
}

.commercial-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.commercial-metrics strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
}

.commercial-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.commercial-entry-panel {
  margin-bottom: 12px;
}

.commercial-entry-form {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(160px, .85fr) minmax(130px, .75fr) minmax(220px, 1.3fr) auto;
  gap: 10px;
  align-items: end;
}

.commercial-coupon-form {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(160px, .85fr) minmax(130px, .75fr) minmax(220px, 1.3fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.commercial-team-panel {
  margin-top: 12px;
}

.commercial-team-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .45fr) minmax(160px, .75fr) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

.commercial-entry-note {
  min-width: 0;
}

.commercial-form-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.commercial-entry-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.commercial-team-list {
  display: grid;
  gap: 8px;
}

.commercial-entry-row,
.commercial-team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #eef0f2;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
}

.commercial-entry-row strong,
.commercial-entry-row span,
.commercial-team-row strong,
.commercial-team-row span,
.commercial-entry-row small {
  display: block;
}

.commercial-entry-row strong,
.commercial-team-row strong {
  font-weight: 500;
}

.commercial-entry-row span,
.commercial-team-row span,
.commercial-entry-row small {
  color: var(--muted);
  font-size: 12px;
}

.commercial-team-row {
  grid-template-columns: 1fr auto auto;
}

.commercial-entry-row small {
  margin-top: 2px;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.commercial-wide {
  grid-column: 1 / -1;
}

.commercial-daily-chart,
.commercial-seller-list {
  display: grid;
  gap: 10px;
}

.commercial-bar-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 190px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.commercial-bar-row i,
.commercial-seller-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #f8f9fa;
}

.commercial-bar-row b,
.commercial-seller-row b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #1a73e8;
}

.commercial-day-result {
  text-align: right;
}

.commercial-day-result strong,
.commercial-day-result small {
  display: block;
}

.commercial-day-result strong {
  color: var(--text);
  font-weight: 500;
}

.commercial-day-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.commercial-seller-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto 64px;
  gap: 8px 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f2;
}

.commercial-seller-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.commercial-seller-row strong {
  font-weight: 500;
}

.commercial-seller-row span,
.commercial-seller-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.commercial-seller-row i {
  grid-column: 1 / -1;
}

.commercial-coupon-list {
  display: grid;
  gap: 8px;
}

.commercial-coupon-total,
.commercial-coupon-row,
.commercial-coupon-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #eef0f2;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.commercial-coupon-total {
  border-top: 3px solid #f57c00;
}

.commercial-coupon-total span,
.commercial-coupon-row strong {
  color: var(--muted);
  font-weight: 500;
}

.commercial-coupon-total strong,
.commercial-coupon-row span {
  color: var(--text);
  font-weight: 500;
}

.commercial-coupon-summary,
.commercial-coupon-history {
  display: grid;
  gap: 8px;
}

.commercial-coupon-history {
  margin-top: 4px;
}

.commercial-coupon-history > strong {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.commercial-coupon-entry span,
.commercial-coupon-entry small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.commercial-coupon-entry strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-weight: 500;
}

.commercial-month-list {
  overflow-x: auto;
}

.commercial-month-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) repeat(5, minmax(112px, .9fr));
  gap: 12px;
  align-items: center;
  min-width: 820px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
  color: var(--muted);
}

.commercial-month-row:last-child {
  border-bottom: 0;
}

.commercial-month-row > * {
  text-align: center;
}

.commercial-month-row > :first-child {
  text-align: left;
}

.commercial-month-row strong {
  color: var(--text);
  font-weight: 500;
}

.commercial-head {
  padding-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f8f9fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lead-name {
  font-weight: 700;
  font-size: 14px;
}

.lead-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft-black);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.pill.info {
  background: var(--soft-blue);
  color: #214d73;
}

.pill.warn {
  background: var(--soft-purple);
  color: var(--purple);
}

.pill.bad {
  background: var(--soft-red);
  color: var(--primary-dark);
}

.pill.done {
  background: var(--soft-green);
  color: var(--green);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.small-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lead-card .small-button {
  justify-self: start;
  min-height: 28px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-select {
  min-height: 32px;
  margin-top: 8px;
  padding: 5px 8px;
  background: #fff;
  font-size: 12px;
}

.inline-select {
  display: block;
  width: min(220px, 100%);
}

.converted-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 11px;
}

.kanban-column:nth-child(1) {
  border-top: 3px solid #b9b9b9;
}

.kanban-column:nth-child(2) {
  border-top: 3px solid var(--blue);
}

.kanban-column:nth-child(3) {
  border-top: 3px solid var(--purple);
}

.kanban-column:nth-child(4),
.kanban-column:nth-child(5) {
  border-top: 3px solid #555555;
}

.kanban-column:nth-child(6) {
  border-top: 3px solid var(--green);
}

.kanban-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.kanban-list {
  display: grid;
  gap: 10px;
}

.lead-card strong {
  display: block;
}

.lead-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.list-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 16px 0 12px;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.user-form-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  grid-column: 1 / -1;
}

.user-list {
  display: grid;
  gap: 8px;
}

.user-state {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  color: var(--muted);
  background: #fff;
}

.user-state-error {
  color: var(--red);
  border-color: rgba(204, 22, 45, 0.25);
  background: rgba(204, 22, 45, 0.04);
}

.user-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #303134;
  color: #fff;
  font-weight: 600;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row strong {
  font-weight: 500;
}

.user-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.followup-metrics,
.capture-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.capture-tools {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 16px;
}

.capture-tools label {
  width: min(280px, 100%);
}

.capture-list {
  display: grid;
  gap: 8px;
}

.capture-card {
  display: grid;
  grid-template-columns:
    minmax(260px, 2fr)
    minmax(180px, 1.1fr)
    minmax(110px, .65fr)
    minmax(170px, 1fr)
    minmax(140px, .8fr)
    minmax(170px, .9fr)
    minmax(160px, auto);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.capture-main {
  min-width: 0;
}

.capture-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.capture-value {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.capture-actions {
  align-self: center;
  justify-content: flex-end;
}

.capture-actions .small-button {
  white-space: nowrap;
}

.capture-card .inline-select {
  width: 100%;
  min-width: 150px;
}

.mini-metric {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mini-metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--mini-color, #9aa0a6);
}

.mini-metric.fill-gray {
  --mini-color: #9aa0a6;
  background: var(--panel);
}

.mini-metric.fill-blue {
  --mini-color: #1a73e8;
  background: var(--panel);
}

.mini-metric.fill-green {
  --mini-color: #188038;
  background: var(--panel);
}

.mini-metric.fill-mint {
  --mini-color: #0f9d58;
  background: var(--panel);
}

.mini-metric.fill-red {
  --mini-color: #d10932;
  background: var(--panel);
}

.mini-metric.fill-yellow {
  --mini-color: #f9ab00;
  background: var(--panel);
}

.mini-metric span,
.mini-metric strong {
  display: block;
}

.mini-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mini-metric strong {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 500;
}

.list-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.compact {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 8px 14px;
}

.editable-list {
  display: grid;
  gap: 7px;
}

.chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fafafa;
}

.chip input {
  min-width: 0;
  min-height: 32px;
  border-color: transparent;
  padding: 5px 8px;
  background: transparent;
  font-weight: 600;
}

.chip:focus-within {
  border-color: #cfcfcf;
  background: #fff;
}

.chip input:focus {
  border-color: var(--line);
  outline: 0;
  background: #fff;
}

.chip-action {
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chip-action:hover {
  color: var(--primary);
}

.chip-action.delete:hover {
  background: var(--soft-red);
}

dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(5, 5, 5, .55);
}

#leadForm,
#prospectForm,
#importProspectForm {
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  margin-bottom: 22px;
}

.modal-head h2 {
  line-height: 1.15;
}

.icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: var(--soft-black);
  font-size: 24px;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.span-2 {
  grid-column: span 2;
}

.import-note {
  margin: 0;
  border-left: 3px solid var(--primary);
  padding: 10px 12px;
  background: #fafafa;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 26px;
}

.empty {
  color: var(--muted);
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .tabs,
  .actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .capture-tools {
    justify-content: flex-start;
  }

  .metrics,
  .commercial-metrics,
  .commercial-entry-form,
  .commercial-coupon-form,
  .commercial-team-form,
  .capture-metrics,
  .dashboard-grid,
  .commercial-grid,
  .analytics-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .donut-shell,
  .capture-ratio {
    grid-template-columns: 1fr;
  }

  .capture-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capture-main,
  .capture-actions {
    grid-column: span 2;
  }

  .capture-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .filters,
  .metrics,
  .commercial-metrics,
  .commercial-entry-form,
  .commercial-coupon-form,
  .commercial-team-form,
  .notice-form,
  .user-form,
  .followup-metrics,
  .capture-metrics,
  .dashboard-grid,
  .commercial-grid,
  .analytics-grid,
  .settings-grid,
  .capture-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .analytics-wide {
    grid-column: auto;
  }

  .analytics-grid {
    grid-template-areas:
      "trend"
      "status"
      "funnel"
      "followup"
      "owners"
      "channels"
      "capture"
      "reactivation";
  }

  .funnel-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .funnel-row strong {
    text-align: left;
  }

  .risk-grid,
  .analytics-kpis,
  .reactivation-podium,
  .capture-type-list {
    grid-template-columns: 1fr;
  }

  .donut-shell {
    grid-template-columns: 1fr;
  }

  .channel-chart-row {
    grid-template-columns: 1fr;
  }

  .commercial-bar-row {
    grid-template-columns: 1fr;
  }

  .commercial-day-result {
    text-align: left;
  }

  .commercial-team-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .capture-main,
  .capture-actions {
    grid-column: auto;
  }

  .brand {
    min-width: 0;
  }

  .sales-head {
    display: grid;
  }

  .sales-total {
    width: 100%;
    text-align: left;
  }

  .list-form {
    flex-direction: column;
  }

  .user-form-actions,
  .user-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compact {
    width: 100%;
  }

  .chip {
    grid-template-columns: 1fr;
  }

  .chip-action {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .topbar {
    z-index: 80;
  }

  .topbar {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    overflow: visible;
  }

  .topbar > .tabs,
  .topbar > .actions {
    display: none;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 76px);
    gap: 8px;
  }

  .brand-home {
    width: max-content;
    max-width: 100%;
  }

  .brand-logo {
    width: 92px;
    max-width: 100%;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand span {
    font-size: 11px;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }

  body.mobile-nav-open .mobile-menu-toggle {
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-nav-open .brand {
    visibility: hidden;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--text);
  }

  .mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(100%);
    flex-direction: column;
    gap: 12px;
    border: 0;
    padding: 14px 16px 18px;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform .2s ease;
  }

  body.mobile-nav-open .mobile-drawer,
  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    background: rgba(32, 33, 36, .38);
  }

  body.mobile-nav-open .mobile-backdrop,
  .mobile-backdrop.is-open {
    display: block;
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-drawer-head strong {
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    font-size: 22px;
  }

  .tabs {
    display: grid;
    justify-content: stretch;
    gap: 2px;
    overflow: visible;
  }

  .tab {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 6px;
    padding: 10px 10px;
    font-size: 15px;
  }

  .tab.is-active {
    background: rgba(209, 9, 50, .07);
    color: var(--primary);
  }

  .tab.is-active::before {
    content: "";
    width: 3px;
    height: 20px;
    border-radius: 999px;
    background: currentColor;
  }

  .capture-tab {
    margin-left: 0;
  }

  .capture-tab::after,
  .settings-tab::after {
    display: none;
  }

  .actions {
    display: grid;
    justify-content: stretch;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .actions #newProspect,
  .actions #newLead,
  .mobile-actions [data-mobile-new-prospect],
  .mobile-actions [data-mobile-new-lead] {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 400;
  }

  .action-separator {
    display: none;
  }

  .admin-menu {
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .admin-menu summary {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 34px;
    width: 100%;
    min-height: 50px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 8px;
    background: #fff;
    overflow: hidden;
  }

  .session-user {
    min-width: 0;
    max-width: none;
    text-align: left;
  }

  .session-user strong {
    font-size: 12px;
  }

  .session-user span {
    font-size: 11px;
  }

  .session-avatar {
    min-width: 34px;
    max-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    justify-self: end;
    overflow: hidden;
    border-radius: 50%;
    line-height: 1;
  }

  .admin-menu-panel {
    position: static;
    width: 100%;
    margin-top: 7px;
    border-radius: 6px;
    box-shadow: none;
  }

  .admin-menu-panel button {
    min-height: 42px;
  }

  main {
    width: 100%;
    max-width: 100vw;
    padding: 10px 10px 30px;
    overflow-x: hidden;
  }

  .mobile-filter-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, .55fr);
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-search-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .mobile-search-field input {
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
  }

  .mobile-filter-summary button {
    display: grid;
    width: 100%;
    min-height: 42px;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 6px;
    align-self: end;
    padding: 6px 10px;
    background: #fff;
    color: var(--text);
    text-align: left;
  }

  body.mobile-filters-open .mobile-filter-summary button {
    border-color: rgba(209, 9, 50, .42);
  }

  .mobile-filter-summary span {
    font-weight: 600;
  }

  .mobile-filter-summary small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
  }

  .filters .filter-search {
    display: none;
  }

  .filters {
    display: none;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    background: #fff;
  }

  body.mobile-filters-open .filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .custom-date-field.is-visible {
    display: grid;
  }

  .filters label {
    min-width: 0;
  }

  input,
  select,
  textarea {
    min-height: 40px;
    font-size: 16px;
  }

  .metrics,
  .commercial-metrics,
  .capture-metrics,
  .followup-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric,
  .mini-metric,
  .commercial-metrics article {
    min-width: 0;
    min-height: 82px;
    padding-inline: 10px;
  }

  .metric span,
  .metric strong,
  .metric small,
  .mini-metric span,
  .mini-metric strong,
  .commercial-metrics span,
  .commercial-metrics strong,
  .commercial-metrics small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .metric strong,
  .mini-metric strong,
  .commercial-metrics strong {
    font-size: 22px;
  }

  .metric-ticket,
  .metric-sold {
    grid-column: 1 / -1;
  }

  .panel {
    min-width: 0;
    padding: 12px;
  }

  .dashboard-grid,
  .analytics-grid,
  .settings-grid,
  .commercial-grid,
  .commercial-entry-form,
  .commercial-coupon-form,
  .commercial-team-form,
  .notice-form,
  .user-form,
  .form-grid,
  .capture-card {
    grid-template-columns: 1fr;
  }

  .analytics-wide {
    grid-column: auto;
  }

  .analytics-grid {
    grid-template-areas:
      "trend"
      "status"
      "funnel"
      "followup"
      "owners"
      "channels"
      "capture"
      "reactivation";
  }

  .capture-main,
  .capture-actions,
  .span-2 {
    grid-column: auto;
  }

  .capture-tools,
  .sales-head,
  .view-actions,
  .modal-head,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .capture-tools,
  .sales-head,
  .view-actions {
    justify-content: stretch;
  }

  .capture-tools label,
  .sales-total,
  .view-actions button {
    width: 100%;
    min-width: 0;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .kanban-column {
    min-width: 0;
  }

  .section-title {
    gap: 8px;
    margin-bottom: 10px;
  }

  .section-title h2,
  .section-title span {
    min-width: 0;
  }

  .notice-panel {
    overflow: hidden;
    padding: 12px;
  }

  .notice-panel .section-title {
    align-items: flex-start;
  }

  .notice-toggle {
    flex: 0 0 auto;
  }

  .notice-board {
    grid-template-columns: 1fr;
  }

  .notice-item {
    min-width: 0;
  }

  .notice-item p,
  .notice-item strong,
  .dashboard-note {
    overflow-wrap: anywhere;
  }

  .table-shell {
    max-width: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table {
    display: block;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 8px;
  }

  tr {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
  }

  td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border-bottom: 0;
    padding: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  td:first-child {
    display: block;
  }

  td:first-child::before,
  td[data-label="Ações"]::before {
    display: none;
  }

  td[data-label="Ações"] {
    grid-template-columns: 1fr;
  }

  td[colspan] {
    display: block;
  }

  td[colspan]::before {
    display: none;
  }

  .row-actions {
    justify-content: flex-start;
  }

  dialog {
    width: min(100% - 16px, 760px);
    max-height: calc(100vh - 16px);
    margin: auto;
  }

  #leadForm,
  #prospectForm,
  #importProspectForm {
    max-height: calc(100vh - 16px);
    padding: 16px;
  }

  .modal-head {
    margin-bottom: 14px;
  }

  .modal-actions {
    display: grid;
    margin-top: 16px;
  }

  .modal-actions button {
    width: 100%;
  }

  .table-shell {
    border-radius: 6px;
  }

  .capture-card {
    gap: 10px;
    padding: 12px;
  }

  .capture-actions {
    display: grid;
    gap: 7px;
  }

  .capture-actions .small-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .commercial-metrics,
  .capture-metrics,
  .followup-metrics {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 84px;
  }

  .brand div {
    display: none;
  }
}

/* Aviz Control design layer */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --text: #1f2328;
  --muted: #66707a;
  --muted-2: #8a939c;
  --line: #dfe3e8;
  --line-soft: #edf0f3;
  --panel: #ffffff;
  --primary: #c8102e;
  --primary-dark: #9f0b24;
  --primary-soft: #fff1f4;
  --ink: #121417;
  --soft-red: #fff1f4;
  --soft-black: #f3f5f7;
  --soft-blue: #edf5ff;
  --soft-green: #edf8f2;
  --soft-purple: #f3f0ff;
  --blue: #2f6fdd;
  --green: #1f7a4d;
  --purple: #5b4c88;
  --orange: #f47b20;
  --yellow: #f5b400;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

body {
  background:
    linear-gradient(180deg, #f8fafc 0, var(--bg) 230px),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.login-card,
.metric,
.panel,
.table-shell,
.kanban-column,
.notice-panel,
.risk-card,
.analytics-kpis article,
.capture-type-list div,
.podium-card,
.commercial-metrics article,
.commercial-entry-row,
.commercial-team-row,
.commercial-coupon-total,
.commercial-coupon-row,
.commercial-coupon-entry,
.capture-card,
.mini-metric,
.lead-card,
.follow-item,
.user-row {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  padding: 9px clamp(20px, 4vw, 44px);
  background: rgba(255, 255, 255, .92);
  border-bottom-color: rgba(31, 35, 40, .11);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 204px;
}

.brand-logo {
  width: 104px;
}

.brand strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.brand span,
.muted {
  color: var(--muted);
}

.tabs {
  gap: 4px;
}

.tab {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 8px 10px;
  color: #555f69;
  font-size: 13px;
  font-weight: 520;
}

.tab .nav-icon,
.actions .nav-icon,
.admin-icon {
  color: #69737d;
  stroke-width: 1.65;
}

.tab:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.tab.is-active:hover {
  background: #fff6f8;
  color: var(--primary-dark);
}

.capture-tab::after,
.settings-tab::after {
  background: var(--line);
}

.actions {
  gap: 10px;
}

.primary,
.ghost,
.danger,
.small-button,
.compact,
.notice-toggle {
  border-radius: var(--radius);
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.primary {
  min-height: 36px;
  background: var(--primary);
  font-weight: 550;
}

.primary:hover {
  background: var(--primary-dark);
}

.ghost {
  min-height: 36px;
  border-color: var(--line);
  color: var(--muted);
}

.ghost:hover,
.small-button:hover {
  border-color: rgba(200, 16, 46, .35);
  background: var(--primary-soft);
  color: var(--primary);
}

.actions #newProspect,
.actions #newLead {
  min-height: 36px;
  padding: 8px 9px;
  color: var(--primary);
}

.actions #newProspect:hover,
.actions #newLead:hover {
  color: #4f5963;
}

.session-avatar,
.user-avatar {
  background: #202329;
  font-weight: 650;
}

.session-user strong {
  font-size: 11px;
  font-weight: 600;
}

.admin-menu-panel {
  border-color: var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .11);
}

.admin-menu-panel button:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

main {
  width: min(1500px, 100%);
  padding: 18px clamp(20px, 4vw, 44px) 48px;
}

.filters {
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}

label {
  gap: 6px;
  color: #58636f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .01em;
}

input,
select,
textarea {
  min-height: 38px;
  border-color: var(--line);
  border-radius: var(--radius);
  padding: 8px 11px;
  background-color: #fff;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8f98a1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c9ced5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 16, 46, .62);
  outline: 3px solid rgba(200, 16, 46, .11);
}

.metrics {
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  min-height: 112px;
  padding: 15px 15px 13px;
  overflow: hidden;
}

.metric::before {
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--metric-color, #9aa0a6);
}

.metric-filter {
  --metric-color: #7a838c;
}

.metric-active {
  --metric-color: var(--blue);
}

.metric-won {
  --metric-color: var(--orange);
}

.metric-discarded {
  --metric-color: var(--primary);
}

.metric-ticket {
  --metric-color: var(--yellow);
  --metric-title-color: var(--muted);
}

.metric-sold {
  --metric-color: var(--green);
}

.metric span {
  min-height: auto;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.metric strong {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(23px, 2.05vw, 30px);
  font-weight: 620;
  letter-spacing: -.01em;
}

.metric small {
  margin-top: 5px;
  color: var(--muted);
}

.dashboard-note {
  margin: -3px 0 18px;
  color: var(--muted-2);
}

.notice-panel,
.panel {
  padding: 18px;
}

.notice-panel {
  margin-bottom: 16px;
}

.notice-item {
  border-color: #f4dd8b;
  border-radius: var(--radius);
  padding: 14px;
  background: #fff8d9;
  box-shadow: none;
}

.section-title {
  margin-bottom: 14px;
}

h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.01em;
}

.bar-row,
.owner-row,
.commercial-seller-row,
.analytics-row,
.reactivation-row,
.commercial-month-row {
  border-bottom-color: var(--line-soft);
}

.bar-label,
.lead-sub,
.panel-note,
.commercial-metrics small,
.commercial-metrics span,
.mini-metric span,
.risk-card span,
.risk-card small,
.analytics-kpis span {
  color: var(--muted);
}

.bar-count,
.pill {
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.pill {
  min-height: 25px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 650;
}

.pill.info {
  border-color: #d6e8fb;
}

.pill.warn {
  border-color: #e4dcff;
}

.pill.bad {
  border-color: #f4ccd5;
}

.pill.done {
  border-color: #ccebd8;
}

.table-shell {
  overflow: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: var(--surface-soft);
  color: #59636e;
  font-size: 11px;
  letter-spacing: .015em;
  text-transform: uppercase;
}

th,
td {
  border-bottom-color: var(--line-soft);
}

tr:hover td {
  background: #fbfcfd;
}

.lead-name {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.005em;
}

.kanban {
  gap: 12px;
}

.kanban-column {
  padding: 13px;
}

.lead-card,
.follow-item,
.capture-card {
  padding: 13px;
}

.mini-metric {
  padding: 13px 14px 12px;
}

.mini-metric::before {
  height: 4px;
}

.mini-metric strong,
.analytics-kpis strong,
.commercial-metrics strong,
.capture-type-list strong {
  font-weight: 620;
  letter-spacing: -.01em;
}

.staff-bar-track {
  border-bottom-color: #d9dee4;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--surface-soft));
}

.funnel-track,
.channel-track,
.commercial-bar-row i,
.commercial-seller-row i,
.score-bar {
  border-color: var(--line);
  background: var(--surface-soft);
}

.sales-total,
.commercial-metrics article,
.risk-card,
.podium-card {
  border-top-width: 4px;
}

dialog {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}

dialog::backdrop {
  background: rgba(17, 24, 39, .48);
}

#leadForm,
#prospectForm,
#importProspectForm {
  background: var(--surface);
}

.icon {
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.import-note {
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.empty {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  }

  .desktop-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) 42px;
    padding: 8px 10px 8px 12px;
  }

  .brand-logo {
    width: 92px;
  }

  .mobile-drawer {
    background:
      linear-gradient(180deg, #fff 0, #fff 70px, #fbfcfd 100%);
  }

  .mobile-drawer-head {
    padding-bottom: 12px;
  }

  .mobile-drawer-head strong {
    font-size: 18px;
    font-weight: 720;
  }

  .mobile-menu-close,
  .mobile-menu-toggle {
    border-color: var(--line);
    border-radius: var(--radius);
  }

  .mobile-tabs {
    gap: 4px;
  }

  .mobile-tabs .tab {
    min-height: 46px;
    padding: 11px 10px;
    background: transparent;
  }

  .mobile-tabs .tab.is-active {
    background: var(--primary-soft);
  }

  .mobile-actions {
    margin-top: auto;
    padding-top: 14px;
  }

  main {
    padding: 12px 10px 32px;
  }

  .mobile-filter-summary {
    gap: 8px;
  }

  .mobile-search-field input,
  .mobile-filter-summary button,
  .filters {
    border-radius: var(--radius);
  }

  .filters {
    padding: 12px;
  }

  .metrics {
    gap: 9px;
  }

  .metric {
    min-height: 106px;
    padding: 14px 12px 12px;
  }

  .metric strong {
    margin-top: 14px;
    font-size: 24px;
  }

  .notice-panel,
  .panel {
    padding: 14px;
  }

  tr {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
}

/* COBAIN design pass: base visual and mobile shell */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --text: #202329;
  --muted: #626b75;
  --muted-2: #8b949e;
  --line: #d9dee4;
  --line-soft: #edf0f3;
  --panel: #ffffff;
  --primary: #c8102e;
  --primary-dark: #9f0b24;
  --primary-soft: #fff2f5;
  --blue: #2f6fdd;
  --green: #1f7a4d;
  --orange: #f47b20;
  --yellow: #f4b400;
  --radius: 8px;
  --shadow: none;
}

* {
  letter-spacing: 0 !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.login-card,
.metric,
.panel,
.table-shell,
.kanban-column,
.notice-panel,
.risk-card,
.analytics-kpis article,
.capture-type-list div,
.podium-card,
.commercial-metrics article,
.commercial-entry-row,
.commercial-team-row,
.commercial-coupon-total,
.commercial-coupon-row,
.commercial-coupon-entry,
.capture-card,
.mini-metric,
.lead-card,
.follow-item,
.user-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.topbar {
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 58px;
  padding: 7px clamp(18px, 4vw, 40px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.brand {
  min-width: 190px;
}

.brand-logo {
  width: 96px;
}

.brand strong {
  font-size: 12px;
  font-weight: 600;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
}

.tabs {
  gap: 5px;
}

.tab {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 7px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.tab .nav-icon,
.actions .nav-icon,
.admin-icon {
  color: currentColor;
  stroke-width: 1.55;
}

.tab:hover {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}

.tab.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
  font-weight: 500;
}

.tab.is-active:hover {
  background: transparent;
  color: var(--muted);
}

.capture-tab::after,
.settings-tab::after {
  background: var(--line);
}

.actions {
  gap: 9px;
}

.primary,
.ghost,
.danger,
.small-button,
.compact,
.notice-toggle {
  border-radius: var(--radius);
  font-weight: 400;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.primary {
  min-height: 35px;
  background: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-dark);
}

.ghost {
  min-height: 35px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.ghost:hover,
.small-button:hover {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

.actions #newProspect,
.actions #newLead {
  min-height: 35px;
  border-color: transparent;
  padding: 7px 8px;
  background: transparent;
  color: var(--primary);
  font-weight: 400;
}

.actions #newProspect:hover,
.actions #newLead:hover {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.session-avatar,
.user-avatar {
  background: #202329;
  font-weight: 600;
}

.session-user strong {
  font-size: 11px;
  font-weight: 500;
}

.session-user span {
  font-size: 10px;
}

.admin-menu summary {
  border-radius: var(--radius);
}

.admin-menu summary:hover {
  color: var(--primary);
}

.admin-menu-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: none;
}

.admin-menu-panel button:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

main {
  width: min(1500px, 100%);
  padding: 18px clamp(18px, 4vw, 40px) 48px;
}

.filters {
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  box-shadow: none;
}

label {
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

input,
select,
textarea {
  min-height: 37px;
  border-color: var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background-color: #fff;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8d969f;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c8ced6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 16, 46, .62);
  outline: 3px solid rgba(200, 16, 46, .1);
}

.metrics {
  gap: 11px;
  margin-bottom: 12px;
}

.metric {
  position: relative;
  min-height: 108px;
  padding: 0 13px 12px;
  overflow: hidden;
}

.metric::before {
  height: 32px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--metric-color, #8b949e);
}

.metric-filter {
  --metric-color: #8b949e;
}

.metric-active {
  --metric-color: var(--blue);
}

.metric-won {
  --metric-color: var(--orange);
}

.metric-discarded {
  --metric-color: var(--primary);
}

.metric-ticket {
  --metric-color: var(--yellow);
  --metric-title-color: #202329;
}

.metric-sold {
  --metric-color: var(--green);
}

.metric span {
  position: relative;
  z-index: 1;
  min-height: 32px;
  margin: 0 -13px;
  padding: 0 13px;
  color: var(--metric-title-color, #fff);
  font-size: 12px;
  font-weight: 500;
}

.metric strong {
  margin-top: 13px;
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
}

.metric small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-note {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.notice-panel,
.panel {
  padding: 17px;
}

.notice-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 16px;
  padding: 0;
}

.section-title {
  margin-bottom: 14px;
}

h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
}

.notice-toggle {
  min-height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.notice-toggle:hover {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

.notice-board {
  gap: 10px;
}

.notice-item {
  border-color: #f3de96;
  border-radius: var(--radius);
  padding: 13px;
  background: #fff9dc;
  box-shadow: none;
}

.notice-item strong {
  font-weight: 500;
}

.notice-item p {
  line-height: 1.42;
}

.bar-row,
.owner-row,
.commercial-seller-row,
.analytics-row,
.reactivation-row,
.commercial-month-row {
  border-bottom-color: var(--line-soft);
}

.bar-label,
.lead-sub,
.panel-note,
.commercial-metrics small,
.commercial-metrics span,
.mini-metric span,
.risk-card span,
.risk-card small,
.analytics-kpis span {
  color: var(--muted);
}

.bar-label::before {
  background: var(--summary-color, #9aa2ab);
}

.bar-count,
.pill {
  border: 1px solid var(--line);
  background: #fff;
}

.pill {
  min-height: 25px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

th,
td {
  border-bottom-color: var(--line-soft);
}

tr:hover td {
  background: #fbfcfd;
}

.lead-name {
  font-size: 14px;
  font-weight: 650;
}

.lead-card,
.follow-item,
.capture-card,
.kanban-column,
.mini-metric {
  padding: 13px;
}

.staff-bar-track,
.funnel-track,
.channel-track,
.commercial-bar-row i,
.commercial-seller-row i,
.score-bar {
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

dialog {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

dialog::backdrop {
  background: rgba(17, 24, 39, .46);
}

.icon {
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.empty {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
  }

  .desktop-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--bg);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px 8px 12px;
    overflow: visible;
  }

  .topbar > .desktop-tabs,
  .topbar > .desktop-actions {
    display: none !important;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 74px);
    gap: 8px;
    padding-right: 54px;
  }

  .brand-logo {
    width: 88px;
  }

  .brand strong {
    font-size: 11px;
  }

  .brand span {
    font-size: 10px;
  }

  .mobile-menu-toggle {
    position: absolute !important;
    top: 8px;
    right: auto;
    left: min(calc(100vw - 52px), 330px);
    z-index: 90;
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .mobile-menu-toggle:hover {
    border-color: var(--primary);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--text);
  }

  .mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 260;
    display: flex !important;
    width: min(88vw, 360px);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--line);
    padding: 14px;
    background: #fff;
    overflow-y: auto;
    transform: none !important;
    transition: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-nav-open .mobile-drawer,
  .mobile-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none !important;
    border: 0;
    border-radius: 0;
    background: rgba(17, 24, 39, .38);
  }

  body.mobile-nav-open .mobile-backdrop,
  .mobile-backdrop.is-open {
    display: block !important;
  }

  .mobile-drawer-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-drawer-brand img {
    width: 76px;
    height: auto;
    display: block;
  }

  .mobile-drawer-brand strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
  }

  .mobile-menu-close {
    display: inline-grid !important;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 23px;
    line-height: 1;
  }

  .mobile-tabs {
    display: grid !important;
    gap: 4px;
    overflow: visible;
  }

  .mobile-tabs .tab {
    display: flex !important;
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-color: transparent;
    border-radius: var(--radius);
    padding: 10px 8px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
  }

  .mobile-tabs .tab:hover {
    color: var(--primary);
  }

  .mobile-tabs .tab.is-active {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .mobile-tabs .tab.is-active::before {
    display: none;
  }

  .mobile-actions {
    display: grid !important;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .mobile-actions [data-mobile-new-prospect],
  .mobile-actions [data-mobile-new-lead] {
    display: inline-flex !important;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 400;
  }

  .mobile-actions [data-mobile-new-prospect]:hover,
  .mobile-actions [data-mobile-new-lead]:hover {
    color: var(--muted);
  }

  .action-separator {
    display: none;
  }

  .mobile-drawer .admin-menu {
    width: 100%;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .mobile-drawer .admin-menu summary {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 34px;
    width: 100%;
    min-height: 50px;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 7px 8px;
    background: #fff;
  }

  .mobile-drawer .session-user {
    min-width: 0;
    max-width: none;
    text-align: left;
  }

  .mobile-drawer .session-avatar {
    min-width: 34px;
    max-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    justify-self: end;
    overflow: hidden;
    border-radius: 50%;
  }

  .mobile-drawer .admin-menu-panel {
    position: static;
    width: 100%;
    margin-top: 7px;
    border-radius: var(--radius);
    box-shadow: none;
  }

  .mobile-drawer .admin-menu-panel button {
    min-height: 42px;
  }

  main {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 10px 10px 30px;
    overflow-x: hidden;
  }

  main > *,
  .view.is-visible {
    max-width: 100%;
  }

  .mobile-filter-summary {
    display: grid !important;
    width: calc(100vw - 20px);
    max-width: 100%;
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-search-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
  }

  .mobile-search-field span {
    display: none;
  }

  .mobile-search-field input {
    min-width: 0;
    min-height: 42px;
    font-size: 16px;
  }

  .mobile-filter-summary button {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-self: end;
    padding: 6px 9px;
    background: #fff;
    color: var(--text);
    text-align: left;
  }

  body.mobile-filters-open .mobile-filter-summary button {
    border-color: rgba(200, 16, 46, .42);
  }

  .mobile-filter-summary span {
    font-size: 12px;
    font-weight: 500;
  }

  .mobile-filter-summary small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
  }

  .filters .filter-search {
    display: none;
  }

  .filters {
    display: none;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
  }

  body.mobile-filters-open .filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .custom-date-field.is-visible {
    display: grid;
  }

  input,
  select,
  textarea {
    min-height: 40px;
    font-size: 16px;
  }

  .metrics,
  .commercial-metrics,
  .capture-metrics,
  .followup-metrics {
    width: calc(100vw - 20px);
    max-width: 100%;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .metric,
  .mini-metric,
  .commercial-metrics article {
    width: 100%;
    min-width: 0 !important;
    min-height: 94px;
    padding-inline: 10px;
  }

  .metric::before {
    height: 29px;
  }

  .metric span {
    min-height: 29px;
    margin-inline: -10px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .metric strong,
  .mini-metric strong,
  .commercial-metrics strong {
    margin-top: 12px;
    font-size: 22px;
  }

  .metric small,
  .dashboard-note {
    font-size: 11px;
  }

  .metric-ticket,
  .metric-sold {
    grid-column: auto;
  }

  .dashboard-note {
    margin: 0 0 14px;
  }

  .notice-panel,
  .panel {
    padding: 13px;
  }

  .dashboard-grid,
  .analytics-grid,
  .settings-grid,
  .commercial-grid,
  .commercial-entry-form,
  .commercial-coupon-form,
  .commercial-team-form,
  .notice-form,
  .user-form,
  .form-grid,
  .capture-card {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-areas:
      "trend"
      "status"
      "funnel"
      "followup"
      "owners"
      "channels"
      "capture"
      "reactivation";
  }

  .analytics-wide,
  .capture-main,
  .capture-actions,
  .span-2 {
    grid-column: auto;
  }

  .section-title {
    gap: 8px;
    margin-bottom: 10px;
  }

  .section-title h2 {
    font-size: 16px;
  }

  .notice-panel {
    border: 0;
    background: transparent;
    padding: 0;
    overflow: hidden;
  }

  .notice-panel .section-title {
    align-items: flex-start;
  }

  .notice-board {
    grid-template-columns: 1fr;
  }

  .notice-item {
    min-width: 0;
  }

  .notice-item p,
  .notice-item strong,
  .dashboard-note {
    overflow-wrap: anywhere;
  }

  .dashboard-grid,
  .analytics-grid {
    gap: 10px;
  }

  .bar-row,
  .owner-row {
    gap: 8px;
  }

  .owner-row {
    grid-template-columns: 1fr auto auto auto;
  }
}

/* COBAIN dashboards pass */
#analyticsView .sales-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 2px 0 14px;
}

#analyticsView .sales-head h2 {
  font-size: 22px;
  font-weight: 650;
}

#analyticsView .sales-head .panel-note {
  max-width: 720px;
  margin-top: 5px;
  color: var(--muted);
}

.analytics-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 12px;
  align-items: start;
}

.analytics-grid .panel {
  min-width: 0;
}

.analytics-trend-panel,
.analytics-status-panel {
  min-height: 286px;
}

.analytics-trend-panel {
  display: flex;
  flex-direction: column;
}

.analytics-trend-panel .trend-chart {
  flex: 1;
  display: grid;
  align-items: end;
  min-height: 188px;
}

.analytics-status-panel .donut-shell {
  min-height: 204px;
}

.chart-legend {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend i,
.donut-legend i {
  width: 8px;
  height: 8px;
}

.trend-line {
  stroke-width: 2.4;
}

.trend-chart svg {
  max-height: 210px;
}

.donut-shell {
  grid-template-columns: minmax(126px, 150px) minmax(0, 1fr);
  gap: 18px;
  justify-content: stretch;
}

.donut-chart {
  display: grid;
  place-items: center;
}

.donut-chart svg {
  max-width: 138px;
}

.donut-legend {
  gap: 6px;
}

.donut-legend div {
  grid-template-columns: 8px minmax(0, 1fr) 36px;
  gap: 8px;
  min-height: 25px;
}

.donut-legend span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-funnel-panel {
  padding-bottom: 14px;
}

.analytics-funnel-panel .section-title {
  margin-bottom: 9px;
}

.funnel-list {
  gap: 1px;
}

.funnel-row {
  grid-template-columns: minmax(180px, .7fr) minmax(180px, 1.45fr) 36px;
  min-height: 34px;
  padding: 5px 0;
}

.funnel-track {
  height: 10px;
  border-radius: 999px;
}

.funnel-meta span {
  font-size: 13px;
}

.funnel-meta small {
  font-size: 11px;
}

.risk-grid {
  gap: 9px;
}

.risk-card {
  min-height: 88px;
  border-top-width: 4px;
  padding: 11px 12px;
}

.risk-card strong {
  margin-top: 7px;
  font-size: 24px;
}

.analytics-owners-panel {
  align-self: stretch;
}

.staff-chart {
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
  min-height: 180px;
  margin-bottom: 12px;
  padding: 4px 0 12px;
}

.staff-chart article {
  min-height: 170px;
}

.staff-bar-track {
  height: 112px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-bottom-color: #c8ced6;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
}

.staff-bar-track span {
  width: min(42px, 100%);
  border-radius: 6px 6px 0 0;
}

.analytics-table,
.reactivation-table {
  border-top: 1px solid var(--line-soft);
}

.analytics-row {
  grid-template-columns: minmax(150px, 1.35fr) repeat(5, minmax(82px, .8fr));
  gap: 10px;
  min-width: 650px;
  padding: 9px 0;
}

.analytics-head,
.reactivation-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.analytics-channel-panel {
  align-self: start;
}

.channel-chart {
  gap: 9px;
}

.channel-chart-row {
  grid-template-columns: minmax(122px, .85fr) minmax(140px, 1.25fr) 34px;
  min-height: 34px;
}

.channel-track {
  height: 14px;
}

.analytics-capture {
  display: grid;
  gap: 12px;
}

.capture-ratio {
  grid-template-columns: 128px minmax(0, 1fr);
  margin-bottom: 0;
}

.capture-ring {
  width: 120px;
  height: 120px;
}

.analytics-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.analytics-kpis article,
.capture-type-list div,
.podium-card {
  border-radius: var(--radius);
}

.analytics-kpis article {
  min-height: 82px;
}

.analytics-kpis span,
.capture-type-list span,
.capture-type-list small,
.podium-card span,
.podium-card small {
  color: var(--muted);
}

.analytics-kpis strong,
.capture-type-list strong {
  font-size: 22px;
}

.capture-type-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.reactivation-ranking {
  margin-top: 10px;
}

.reactivation-podium {
  gap: 10px;
}

.podium-card {
  min-height: 92px;
}

.reactivation-row {
  min-width: 860px;
  padding: 9px 0;
}

@media (max-width: 1100px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "trend"
      "status"
      "funnel"
      "followup"
      "channels"
      "owners"
      "capture"
      "reactivation";
  }

  .analytics-trend-panel,
  .analytics-status-panel {
    min-height: auto;
  }

  .analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #analyticsView .sales-head {
    margin: 0 0 12px;
  }

  #analyticsView .sales-head h2 {
    font-size: 20px;
  }

  #analyticsView .sales-head .panel-note {
    font-size: 12px;
  }

  .analytics-grid {
    width: calc(100vw - 20px);
    max-width: 100%;
  }

  .analytics-trend-panel .trend-chart {
    min-height: 150px;
  }

  .trend-chart svg {
    min-width: 520px;
  }

  .trend-chart {
    overflow-x: auto;
  }

  .donut-shell {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }

  .donut-chart svg {
    max-width: 132px;
  }

  .donut-legend div {
    grid-template-columns: 8px minmax(0, 1fr) 30px;
  }

  .funnel-row {
    grid-template-columns: 1fr 42px;
    gap: 8px;
    min-height: 48px;
  }

  .funnel-meta {
    grid-column: 1 / -1;
  }

  .analytics-funnel-panel .funnel-meta {
    display: block;
  }

  .funnel-track {
    grid-column: 1;
  }

  .funnel-row strong {
    grid-column: 2;
    text-align: right;
  }

  .risk-grid,
  .analytics-kpis,
  .capture-type-list,
  .reactivation-podium {
    grid-template-columns: 1fr;
  }

  .risk-card {
    min-height: 76px;
  }

  .staff-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .staff-chart article {
    min-height: 144px;
  }

  .staff-bar-track {
    height: 82px;
  }

  .analytics-table,
  .reactivation-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .analytics-row {
    min-width: 610px;
  }

  .channel-chart-row {
    grid-template-columns: 1fr 32px;
    gap: 6px;
  }

  .channel-chart-row > div:first-child {
    grid-column: 1 / -1;
  }

  .channel-track {
    grid-column: 1;
  }

  .channel-chart-row em {
    grid-column: 2;
  }

  .capture-ratio {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .capture-ring {
    width: 116px;
    height: 116px;
  }
}
