/* Compact geometry and short, purposeful movement across the CRM. */
.crm {
  --interface-radius: 16px;
  --interface-fast: 140ms;
  --interface-ease: cubic-bezier(.2, .7, .2, 1);
}

.crm :is(button, input, select, textarea) { border-radius: 12px; }
.crm :is(.stat, .panel, .table-wrap, .property-card, .deal-card,
  .kanban-column, .guide-card, .welcome-guide, .auth-art, .plan-note,
  .workspace, .platform-intro, .archive-banner, .notice, .wizard-review,
  .ai-preview, .ai-activation, .client-context, .client-empty, .client-match,
  .client-history-empty) { border-radius: var(--interface-radius); }
.crm :is(.mobile-nav a, .tag, .reference, .view-tabs,
  .welcome-progress span, .guide-number, .ai-large-symbol,
  .client-avatar, .client-timeline-icon, .workspace-avatar, .avatar) {
  border-radius: 3px;
}
.crm .nav a { border-radius: 14px; }
.crm dialog, .crm dialog.client-workspace { border-radius: 20px; }
.crm .client-visit-feedback { border-radius: 0 12px 12px 0; }
.crm .fox-chat-panel { border-radius: 18px; }
.crm #fox-assistant :is(button, textarea, .fox-chat-avatar, .fox-message) {
  border-radius: 3px;
}
.crm #fox-assistant .fox-launcher { border-radius: 50%; }
.crm #toast { border-radius: 14px; }
.crm .demo-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.crm .demo-entry svg { width: 18px; height: 18px; color: #ffb07a; }
.crm .demo-entry:hover { background: var(--surface); border-color: #80604b; }

/* The sidebar is a short route map: main work stays visible; utilities stay quiet. */
.crm .sidebar .nav-section { margin: 25px 0 8px; }
.crm .sidebar .tools-label { margin-top: 22px; }
.crm .sidebar .nav a {
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 11px;
  gap: 10px;
}
.crm .sidebar .nav a.active {
  box-shadow: 0 6px 16px #f47a3526;
}
.crm .sidebar .nav-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.crm .sidebar .nav-tools a {
  min-height: 36px;
  margin: 0;
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.25;
}
.crm .sidebar .nav-tools a svg { width: 16px; height: 16px; flex: 0 0 16px; }
.crm .sidebar .nav-tools .counter { margin-left: auto; }

.crm :is(button, .nav a, .mobile-nav a) {
  transition: background-color var(--interface-fast) ease,
    border-color var(--interface-fast) ease,
    color var(--interface-fast) ease,
    box-shadow var(--interface-fast) ease,
    transform var(--interface-fast) var(--interface-ease);
}
.crm :is(input, select, textarea) {
  transition: border-color var(--interface-fast) ease,
    box-shadow var(--interface-fast) ease;
}
.crm :is(input, select, textarea):focus {
  border-color: #f47a35;
  box-shadow: 0 0 0 3px #f47a351a;
}
.crm :is(button, a):focus-visible {
  outline: 2px solid #ffb07a;
  outline-offset: 3px;
}
.crm button:not(:disabled):active { transform: translateY(1px); }
.crm :is(.property-card, .guide-card, .client-match, .stat, .deal-card) {
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms var(--interface-ease);
}
.crm .bar-fill { transform-origin: left center; }

@media (hover: hover) and (pointer: fine) {
  .crm button:not(:disabled):not(.task-check):hover { transform: translateY(-1px); }
  .crm button.primary:not(:disabled):hover { box-shadow: 0 5px 18px #f47a3524; }
  .crm .nav a:hover { transform: translateX(3px); }
  .crm :is(.property-card, .guide-card, .client-match):hover {
    transform: translateY(-3px);
    border-color: #80604b;
    box-shadow: 0 8px 20px #0003;
  }
  .crm :is(.stat, .deal-card):hover { border-color: #80604b; }
  .crm #fox-assistant .fox-launcher:hover { transform: translateY(-3px); }
}
.crm button:not(:disabled):not(.task-check):active { transform: translateY(1px); }
.crm #fox-assistant .fox-launcher:active { transform: translateY(1px); }

@media (prefers-reduced-motion: no-preference) {
  .crm .content.view-enter { animation: upmora-view-in 280ms var(--interface-ease); }
  .crm .view-enter .stat { animation: upmora-card-in 320ms var(--interface-ease) backwards; }
  .crm .view-enter .stat:nth-child(2) { animation-delay: 35ms; }
  .crm .view-enter .stat:nth-child(3) { animation-delay: 70ms; }
  .crm .view-enter .stat:nth-child(4) { animation-delay: 105ms; }
  .crm .view-enter .bar-fill { animation: upmora-bar-in 600ms var(--interface-ease); }
  .crm dialog[open] { animation: upmora-dialog-in 180ms var(--interface-ease); }
  .crm dialog[open]::backdrop { animation: upmora-backdrop-in 180ms ease; }
  .crm .wizard-step:not([hidden]) { animation: upmora-view-in 180ms var(--interface-ease); }
  .crm .fox-chat-panel { animation: upmora-chat-in 180ms var(--interface-ease); }
}

@keyframes upmora-view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes upmora-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes upmora-bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes upmora-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
@keyframes upmora-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes upmora-chat-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .crm *, .crm *::before, .crm *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .crm :is(button, .nav a, .property-card, .guide-card, .client-match):is(:hover, :active) {
    transform: none !important;
  }
}

/* The guide remains useful after the first records have been added. */
.crm .guide-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.crm .guide-module {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--interface-radius);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms var(--interface-ease);
}
.crm .guide-module-link {
  display: block;
  position: relative;
  padding: 24px 24px 20px;
  color: var(--text);
  text-decoration: none;
  outline-offset: -4px;
}
.crm .guide-module-link::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #f47a35;
  opacity: 0;
  transition: opacity 180ms ease;
}
.crm .guide-module-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.crm .guide-module-title { min-width: 0; }
.crm .guide-module-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #f47a3540;
  border-radius: 3px;
  background: #f47a3514;
  color: #ffb07a;
}
.crm .guide-module-icon svg { width: 24px; height: 24px; }
.crm .guide-module-count {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.crm .guide-module-caption {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.crm .guide-module-caption > span { color: #ffb07a; }
.crm .guide-module h2 { margin: 5px 0 0; font-size: 23px; }
.crm .guide-module p {
  max-width: 48ch;
  margin: 0;
  min-height: 42px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.crm .guide-module-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 16px 0 19px;
  list-style: none;
}
.crm .guide-module-features li {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 10px;
}
.crm .guide-module-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  color: #ffb07a;
  font-size: 12px;
  font-weight: 600;
}
.crm .guide-module-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm .guide-module-bottom .guide-module-enter { gap: 12px; }
.crm .guide-module-enter > span {
  display: grid;
  place-items: center;
  transition: transform 180ms var(--interface-ease);
}
.crm .guide-module-enter svg { width: 20px; height: 20px; }
.crm .guide-module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  background: #11131566;
}
.crm .guide-module-footer > span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}
.crm .guide-module-footer button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 9px 11px;
  font-size: 11px;
}
.crm .guide-module:focus-within { border-color: #f47a35; }
.crm .guide-module-link:focus-visible::before { opacity: 1; }
.crm .guide-module-link:focus-visible .guide-module-enter > span { transform: translateX(4px); }
.crm .guide-help summary { padding: 3px 0; min-height: 24px; line-height: 1.6; }
.crm .guide-help details[open] summary { color: #ffb07a; }
.crm .guide-help summary:focus-visible { outline: 2px solid #ffb07a; outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .crm .guide-module:hover {
    transform: translateY(-3px);
    border-color: #80604b;
    box-shadow: 0 8px 24px #0003;
  }
  .crm .guide-module-link:hover::before { opacity: 1; }
  .crm .guide-module-link:hover .guide-module-enter > span { transform: translateX(4px); }
  .crm .guide-module-footer button:hover { border-color: #f47a35; color: #ffb07a; }
}
@media (prefers-reduced-motion: no-preference) {
  .crm .view-enter .guide-module { animation: upmora-card-in 300ms var(--interface-ease) backwards; }
  .crm .view-enter .guide-module:nth-child(2) { animation-delay: 35ms; }
  .crm .view-enter .guide-module:nth-child(3) { animation-delay: 70ms; }
  .crm .view-enter .guide-module:nth-child(4) { animation-delay: 105ms; }
}
@media (prefers-reduced-motion: reduce) {
  .crm .guide-module:hover, .crm .guide-module-enter > span { transform: none !important; }
}
@media (max-width: 1100px) {
  .crm .guide-module-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .crm .guide-module-footer button { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  .crm .guide-modules { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .crm .guide-module-link { padding: 21px 20px 17px; }
  .crm .guide-module h2 { font-size: 22px; }
  .crm .guide-module p { min-height: 0; }
  .crm .guide-module-footer { padding: 13px 20px; }
}
.billing-payment{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;background:#fa7c32;color:#111315;border-radius:3px;text-decoration:none;font-weight:700;white-space:normal}.billing-payment:hover{background:#ffab72}.billing-payment:focus-visible{outline:2px solid #fff;outline-offset:3px}

.crm .next-action-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.crm .next-action-card,
.crm .client-next-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 3px solid #f47a35;
  border-radius: var(--interface-radius);
  background: var(--surface);
}
.crm .next-action-card {
  padding: 14px;
}
.crm .next-action-card.green,
.crm .client-next-step.green { border-left-color: #9ddb5d; }
.crm .next-action-card.red,
.crm .client-next-step.red { border-left-color: #ff7f7f; }
.crm .next-action-card.amber,
.crm .client-next-step.amber { border-left-color: #ffb07a; }
.crm .next-action-card.blue,
.crm .client-next-step.blue { border-left-color: #72b8ff; }
.crm .next-action-icon,
.crm .client-next-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f47a3540;
  border-radius: 3px;
  background: #f47a3512;
  color: #ffb07a;
}
.crm .next-action-icon svg,
.crm .client-next-step > span svg { width: 18px; height: 18px; }
.crm .next-action-card strong,
.crm .client-next-step strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crm .next-action-card p,
.crm .client-next-step p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.crm .next-action-card button {
  grid-column: 1 / -1;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  margin-top: 2px;
  padding: 8px 10px;
  font-size: 11px;
}
.crm .next-action-card button svg,
.crm .client-next-step button svg { width: 14px; height: 14px; }
.crm .next-action-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--interface-radius);
  color: var(--text-muted);
  font-size: 12px;
}
.crm .dashboard-priorities {
  margin: 0 0 18px;
}
.crm .mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.crm .mini-heading span {
  color: #f7f2eb;
  font-size: 12px;
  font-weight: 800;
}
.crm .mini-heading a {
  color: #ff9a61;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.crm .client-next-step {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 18px;
  padding: 13px 14px;
}
.crm .client-next-step button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .crm .next-action-card:hover,
  .crm .client-next-step:hover {
    border-color: #80604b;
    box-shadow: 0 8px 20px #0003;
  }
}
@media (max-width: 1180px) {
  .crm .next-action-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .crm .next-action-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .crm .client-next-step {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .crm .client-next-step button {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
}

.crm .import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.crm .import-page { width: min(100%, 980px); margin: 0 auto; }
.crm .import-page .page-heading { margin-bottom: 24px; }
.crm .import-workspace { padding-bottom: 18px; }
.crm .import-workspace .panel-head { min-height: auto; padding: 0 0 13px; border: 0; background: transparent; }
.crm .import-workspace .panel-head h2 { font-size: 15px; }
.crm .import-workspace .panel-head small { color: var(--text-muted); }
.crm .import-panel textarea {
  min-height: 150px;
  max-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}
.crm .import-kind {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.crm .import-kind button.selected {
  border-color: #f47a35;
  color: #ffb07a;
  background: #f47a3512;
}
.crm .import-file {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  height: 92px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #343e47;
  border-radius: 18px;
  background: linear-gradient(120deg,#1a2025,#15191d);
  cursor: pointer;
}
.crm .import-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.crm .import-file-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #f47a35;
  color: #111315;
}
.crm .import-file-icon svg { width: 17px; height: 17px; }
.crm .import-file strong, .crm .import-file small { display: block; }
.crm .import-file strong { font-size: 12px; }
.crm .import-file small { margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.crm .import-file:hover { border-color: #f47a35; background: linear-gradient(120deg,#20252a,#181b1e); }
.crm .import-paste > span { display: block; margin: 0 0 8px 2px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.crm .import-paste textarea { border-radius: 18px; background: #151a1f; }
.crm .import-step {
  padding: 5px 8px;
  border: 1px solid #f47a3540;
  border-radius: 999px;
  color: #ffb07a;
  font-size: 10px;
  font-weight: 700;
}
.crm .import-guide { display: grid; gap: 18px; }
.crm .import-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.crm .import-steps li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.crm .import-steps b { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #f47a3540; border-radius: 50%; color: #ffb07a; font-size: 11px; }
.crm .import-model .helper { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.65; }
.crm .import-guide-tip { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.65; }
}
.crm .import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 2px;
}
.crm .import-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.crm .import-columns span {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 7px;
  color: var(--text-muted);
  font-size: 11px;
}
.crm .import-preview {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .crm .import-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Rounded visual language across the CRM. The assistant launcher remains a circle. */
.crm :is(.mobile-nav a, .tag, .reference, .view-tabs, .welcome-progress span,
  .guide-number, .ai-large-symbol, .client-avatar, .client-timeline-icon,
  .workspace-avatar, .avatar, .import-columns span) { border-radius: 999px; }
.crm :is(.guide-module-icon, .next-action-icon, .client-next-step > span,
  .import-file, .import-paste textarea, .import-panel textarea) { border-radius: 14px; }
.crm .guide-module-features li { border-radius: 999px; }
.crm .billing-payment { border-radius: 12px; }

/* Modern workspace refresh: fewer borders, clearer hierarchy, calmer navigation. */
.crm { background: radial-gradient(circle at 88% -12%, #f47a3512, transparent 34rem), #0b0d0f; }
.crm .shell { grid-template-columns:272px minmax(0,1fr); }
.crm .sidebar { width:272px; padding:28px 16px 16px; background:linear-gradient(180deg,#12161a,#0c0f12); border-color:#252c32; }
.crm .sidebar .logo { padding:0 10px 30px; }
.crm .nav-section { margin:0 0 9px; padding:0 10px; color:#717c86; font-size:9px; font-weight:800; letter-spacing:1.4px; }
.crm .sidebar .tools-label { margin-top:23px; }
.crm .sidebar .nav { gap:4px; }
.crm .sidebar .nav a { position:relative; min-height:44px; margin:0; padding:10px 12px; border:1px solid transparent; border-radius:13px; color:#b7c0c8; font-size:12px; font-weight:600; }
.crm .sidebar .nav a svg { width:18px; height:18px; color:#8c98a1; }
.crm .sidebar .nav a::before { content:''; position:absolute; left:-8px; width:3px; height:18px; border-radius:99px; background:#ff7a2f; opacity:0; transform:scaleY(.4); transition:opacity .18s,transform .18s; }
.crm .sidebar .nav a:hover { background:#1a2025; color:#fff; transform:none; }
.crm .sidebar .nav a.active { border-color:#f47a3533; background:linear-gradient(90deg,#f47a3528,#f47a3506); box-shadow:none; color:#fff; }
.crm .sidebar .nav a.active::before { opacity:1; transform:scaleY(1); }
.crm .sidebar .nav a.active svg { color:#ff8f52; }
.crm .sidebar .nav-tools { display:flex; gap:4px; }
.crm .sidebar .nav-tools a { min-height:38px; padding:8px 12px; font-size:11px; }
.crm .plan-note { margin:0 2px; padding:11px 12px; border:1px solid #2d3740; border-radius:14px; background:#151a1f; }
.crm .profile { padding:14px 5px 0; border-color:#252c32; }
.crm .profile .avatar { width:36px; height:36px; background:#273039; color:#fff; }
.crm .topbar { position:sticky; top:0; z-index:15; height:72px; padding:0 40px; border-color:#20272d; background:#0b0d0fe8; backdrop-filter:blur(18px); }
.crm .breadcrumbs { color:#7f8b95; }.crm .breadcrumbs strong { color:#f4efe8; }
.crm .top-right .help-button { min-height:36px; border-radius:999px; background:#171c21; }
.crm .content { max-width:1560px; padding:42px 40px 46px; }
.crm .page-heading { align-items:end; margin-bottom:30px; }
.crm .page-heading h1 { color:#fffaf4; font-size:clamp(29px,3vw,38px); letter-spacing:0; }
.crm .page-heading p { max-width:560px; margin-top:8px; color:#9da8b1; font-size:14px; }
.crm button { min-height:40px; border-radius:12px; font-weight:700; }
.crm button.primary { min-height:42px; padding:10px 16px; border-color:#ff8a4a; background:linear-gradient(135deg,#ff8b48,#f26925); box-shadow:0 10px 24px #f47a3524; }
.crm :is(.stat,.panel,.table-wrap,.property-card,.kanban-column,.deal-card,.guide-card,.platform-intro) { border:1px solid #2a3239; border-radius:22px; background:linear-gradient(145deg,#181d22,#14181c); box-shadow:0 16px 42px #00000018; }
.crm .stats,.crm .dashboard-grid { gap:14px; }
.crm .stat { position:relative; min-height:146px; padding:19px; overflow:hidden; }
.crm .stat::after { content:''; position:absolute; right:-28px; bottom:-36px; width:106px; height:106px; border:1px solid #f47a352e; border-radius:50%; }
.crm .stat-head { color:#a3aeb7; }.crm .stat-head svg { color:#ff9b61; }.crm .stat-value { color:#fffaf4; font-size:clamp(24px,2.2vw,31px); }.crm .stat-foot { color:#89959f; }
.crm .panel { overflow:hidden; }.crm .panel-head { min-height:72px; padding:17px 20px; border-color:#293139; }.crm .panel-head h2 { color:#fffaf4; }.crm .panel-head a { color:#ff9a61; font-weight:700; }.crm .panel-body { padding:17px 20px; }
.crm .pipeline-row { grid-template-columns:128px 1fr auto; color:#a4afb7; }.crm .bar-track { height:7px; border-radius:99px; background:#262e35; }.crm .bar-fill { border-radius:99px; background:linear-gradient(90deg,#f47a35,#ffab79); }
.crm .info-row,.crm td,.crm th { border-color:#293139; }.crm th { background:#1b2025; color:#89949e; }.crm tbody tr:hover { background:#20262c; }
.crm .toolbar { padding:11px; border:1px solid #293139; border-radius:16px; background:#151a1f; }.crm .search-box input,.crm .filters select { border-radius:11px; background:#101418; }
.crm .property-visual { height:182px; }.crm .property-body { padding:18px; }.crm .property-bottom { border-color:#293139; }
.crm .kanban { gap:12px; }.crm .kanban-column { border-radius:18px; background:#151a1f; }.crm .deal-card { border-radius:14px; background:#1b2126; box-shadow:none; }.crm .deal-card:hover { border-color:#f47a3566; }
.crm .footer-caption { margin-top:28px; color:#77828c; }
@media(max-width:1100px){.crm .shell{grid-template-columns:246px minmax(0,1fr)}.crm .sidebar{width:246px}.crm .content{padding:32px 24px 42px}.crm .topbar{padding:0 24px}}
@media(max-width:760px){.crm .topbar{height:62px;padding:0 16px;background:#0b0d0ff5}.crm .mobile-nav{gap:8px;padding:9px 14px;border-color:#252c32;background:#101418}.crm .mobile-nav a,.crm .mobile-nav button{min-height:36px;border-radius:999px;background:#1a2025;color:#b9c2ca}.crm .mobile-nav a.active,.crm .mobile-nav button.active{background:#f47a35;color:#16110d}.crm .content{padding:26px 16px calc(104px + env(safe-area-inset-bottom))}.crm .page-heading{align-items:flex-start;margin-bottom:22px}.crm .page-heading h1{font-size:29px}.crm .stat{min-height:128px;border-radius:17px;padding:15px}.crm :is(.panel,.table-wrap,.property-card,.kanban-column){border-radius:18px}.crm .toolbar{border-radius:14px}}

/* Property labels must stay above the image, never in its center. */
.crm .property-visual > .property-card-cover { z-index: 0; }
.crm .property-visual > .reference,
.crm .property-visual > .tag {
  position: absolute;
  z-index: 3;
  top: 12px;
  margin: 0;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  box-shadow: 0 5px 18px #0006;
}
.crm .property-visual > .reference {
  left: 12px;
  background: #11171de6;
  color: #fff;
}
.crm .property-visual > .tag { right: 12px; }

.crm .quick-import { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 14px; border:1px solid #3a4650; border-radius:12px; color:#f4efe8; background:#171d22; font-size:13px; font-weight:700; cursor:pointer; }
.crm .quick-import:hover { border-color:#f47a35; color:#ffad7a; }
.crm .quick-import input { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; }

.crm .client-table td {
  vertical-align: middle;
}
.crm .client-table {
  overflow-x: auto;
  scrollbar-width: thin;
}
.crm .client-table table {
  min-width: 980px;
  table-layout: fixed;
}
.crm .client-table th,
.crm .client-table td {
  white-space: normal;
}
.crm .client-table th:nth-child(1),
.crm .client-table td:nth-child(1) { width: 210px; }
.crm .client-table th:nth-child(2),
.crm .client-table td:nth-child(2) { width: 190px; }
.crm .client-table th:nth-child(3),
.crm .client-table td:nth-child(3) { width: 170px; }
.crm .client-table th:nth-child(4),
.crm .client-table td:nth-child(4) { width: 130px; }
.crm .client-table th:nth-child(5),
.crm .client-table td:nth-child(5) { width: 130px; }
.crm .client-table th:nth-child(6),
.crm .client-table td:nth-child(6) { width: 220px; }
.crm .client-table th,
.crm .client-table td {
  padding: 12px 14px;
}
.crm .client-table .cell-title,
.crm .client-table .cell-sub {
  max-width: 100%;
}
.crm .client-signal {
  display: grid;
  gap: 5px;
  min-width: 150px;
}
.crm .client-signal .tag {
  width: fit-content;
}
.crm .client-signal small {
  color: #8d98a1;
  font-size: 11px;
  line-height: 1.4;
}
.crm .client-signal.hot small {
  color: #ffb783;
}
.crm .client-signal.stale small {
  color: #ff9a9a;
}
.crm .client-table .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  max-width: 220px;
  gap: 5px;
}
.crm .client-table .row-actions button,
.crm .client-table .row-actions a {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #303941;
  border-radius: 999px;
  background: #151b20;
  font-size: 11px;
}
.crm .client-table .row-actions .icon {
  width: 32px;
  padding: 5px;
}
@media (max-width: 900px) {
  .crm .client-table table {
    min-width: 900px;
  }
  .crm .client-table .row-actions {
    flex-wrap: nowrap;
  }
}

/* Recolhimento do menu: ícones permanecem disponíveis e o estado fica salvo no navegador. */
.crm .sidebar-brand { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 6px 22px; }
.crm .sidebar-brand .logo { padding:0; min-width:0; }
.crm .sidebar-toggle { min-width:34px; min-height:34px; padding:7px; color:#aab4bc; }
.crm .sidebar-toggle svg { transition:transform .2s ease; }
.crm .shell.sidebar-collapsed { grid-template-columns:84px minmax(0,1fr); }
.crm .shell.sidebar-collapsed .sidebar { width:84px; padding:22px 10px 14px; }
.crm .shell.sidebar-collapsed .sidebar-brand { justify-content:center; padding-bottom:25px; }
.crm .shell.sidebar-collapsed .sidebar-brand .logo > div,
.crm .shell.sidebar-collapsed .nav-section,
.crm .shell.sidebar-collapsed .plan-note,
.crm .shell.sidebar-collapsed .profile > div:not(.avatar),
.crm .shell.sidebar-collapsed .profile .ghost { display:none; }
.crm .shell.sidebar-collapsed .sidebar-brand .logo img { width:34px; height:34px; }
.crm .shell.sidebar-collapsed .sidebar-toggle { position:absolute; top:24px; right:-15px; z-index:2; border:1px solid #313940; border-radius:999px; background:#171d22; box-shadow:0 6px 18px #0007; }
.crm .shell.sidebar-collapsed .sidebar-toggle svg { transform:rotate(180deg); }
.crm .shell.sidebar-collapsed .sidebar .nav a { justify-content:center; padding:10px; font-size:0; }
.crm .shell.sidebar-collapsed .sidebar .nav a svg { width:19px; height:19px; }
.crm .shell.sidebar-collapsed .sidebar .nav a::before { left:-10px; }
.crm .shell.sidebar-collapsed .sidebar .nav a .counter { display:none; }
.crm .shell.sidebar-collapsed .sidebar-bottom { align-items:center; padding-top:12px; }
.crm .shell.sidebar-collapsed .profile { padding:10px 0 0; border:0; }
.crm .shell.sidebar-collapsed .profile .avatar { width:34px; height:34px; }
@media(max-width:760px){.crm .sidebar-toggle{display:none}.crm .shell.sidebar-collapsed{grid-template-columns:1fr}}

/* Actions that open a prepared conversation stay compact inside dense tables. */
.crm .row-actions .whatsapp-action,
.crm .row-actions .proposal-action { display:inline-flex; align-items:center; gap:6px; text-decoration:none; white-space:nowrap; }
.crm .whatsapp-action svg { color:#a8e95a; }
.crm .proposal-action svg { color:#ff9a61; }
.crm .followup-panel { grid-column:1 / -1; }
.crm .followup-list { display:grid; gap:0; }
.crm .followup-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid #293139; }
.crm .followup-row:last-child { border-bottom:0; padding-bottom:0; }
.crm .followup-row strong,.crm .followup-row small { display:block; }
.crm .followup-row small { margin-top:3px; color:#89959f; }
.crm .compare-open { border-color:#f47a3566; color:#ffac7b; }
.crm .compare-toggle.selected { border-color:#f47a35; background:#f47a3518; color:#ffad7a; }
.crm .comparison-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; }
.crm .comparison-grid article { padding:14px; border:1px solid #2b343b; border-radius:16px; background:#141a1f; }
.crm .comparison-grid h3 { margin:10px 0 4px; font-size:16px; }.crm .comparison-grid p { margin:0; color:#99a5ae; font-size:13px; }
.crm .comparison-photo { height:112px; display:grid; place-items:center; overflow:hidden; border-radius:12px; background:#222a2d; color:#aab6c0; }.crm .comparison-photo img { width:100%; height:100%; object-fit:cover; }.crm .comparison-photo svg { width:56px; height:56px; }
.crm .comparison-grid .reference { display:inline-block; margin-top:10px; color:#ffad7a; font-size:11px; font-weight:800; }.crm .comparison-price { display:block; margin:14px 0; color:#fff6ef; font-size:18px; }.crm .comparison-price small { margin-left:3px; color:#929da6; font-size:11px; }.crm .comparison-facts { display:grid; grid-template-columns:1fr 1fr; gap:7px; color:#a4afb8; font-size:12px; }
.crm .client-message-templates { display:flex; flex-wrap:wrap; align-items:center; gap:7px; padding:11px 14px; border:1px solid #2b343b; border-radius:14px; background:#141a1f; }.crm .client-message-templates>span { margin-right:4px; color:#9ca7b0; font-size:12px; font-weight:700; }.crm .client-message-templates button { min-height:31px; padding:5px 10px; border-radius:999px; background:#1c242a; color:#dce3e7; font-size:11px; }
@media(max-width:760px){
  .crm .row-actions .whatsapp-action,.crm .row-actions .proposal-action { min-height:36px; padding:7px 10px; }
  .crm .followup-row { align-items:flex-start; flex-direction:column; }
  .crm .comparison-grid { grid-template-columns:1fr; }
}

/* Compact import guidance. */
.crm .import-guide-panel .panel-head { min-height:auto; padding-bottom:13px; }
.crm .import-guide-panel .panel-head h2 { font-size:15px; }
.crm .import-guide-panel .panel-head small { color:#9ca7b0; }
.crm .import-guide-panel .import-steps { gap:8px; }
.crm .import-guide-panel .import-steps li {
  grid-template-columns:30px 1fr;
  gap:10px;
  padding:10px;
  border:1px solid #2a3239;
  border-radius:12px;
  background:#11161a;
}
.crm .import-guide-panel .import-steps b { width:30px; height:30px; border:0; background:#f47a351c; color:#ff9b61; }
.crm .import-guide-panel .import-steps strong,
.crm .import-guide-panel .import-steps small { display:block; }
.crm .import-guide-panel .import-steps strong { color:#f7f2eb; font-size:12px; }
.crm .import-guide-panel .import-steps small { margin-top:2px; color:#8f9aa3; font-size:11px; }
.crm .import-guide-panel .import-guide-tip { margin-top:12px; padding-top:12px; color:#9ca7b0; }

/* Login premium alinhado à landing pública. */
.crm .auth-premium {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.72fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, #f47a3528, transparent 27rem),
    radial-gradient(circle at 82% 84%, #ff7a2f18, transparent 25rem),
    linear-gradient(135deg, #07090b 0%, #0d1115 58%, #111417 100%);
  color: #fffaf4;
}
.crm .auth-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #07090bf2 0%, #07090bd8 45%, #07090bf8 100%),
    url('/brand/upmora-hero-wide.jpg') center/cover no-repeat;
  opacity: .58;
  pointer-events: none;
}
.crm .auth-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 68%);
  pointer-events: none;
}
.crm .auth-premium .auth-story,
.crm .auth-premium .auth-main {
  position: relative;
  z-index: 1;
}
.crm .auth-premium .auth-story {
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px) clamp(34px, 8vw, 118px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  border: 0;
  background: transparent;
  color: #fffaf4;
}
.crm .auth-premium .logo {
  font-size: 27px;
  color: #fff;
}
.crm .auth-premium .logo img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 12px 28px #f47a3540);
}
.crm .auth-premium .logo span {
  color: #aeb8c1;
  letter-spacing: .5px;
}
.crm .auth-premium .auth-copy {
  max-width: 650px;
}
.crm .auth-premium .eyebrow,
.crm .auth-card-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #f47a354d;
  border-radius: 999px;
  background: #f47a3512;
  color: #ff9d63;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.9px;
}
.crm .auth-premium .auth-story h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .96;
  letter-spacing: -4px;
  font-weight: 900;
}
.crm .auth-premium .auth-story p {
  max-width: 590px;
  margin-top: 24px;
  color: #c9d0d7;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.7;
}
.crm .auth-premium .auth-points {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
}
.crm .auth-premium .auth-points div {
  width: fit-content;
  min-height: 42px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #ffffff16;
  border-radius: 999px;
  background: #10151bb8;
  color: #edf2f5;
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 750;
}
.crm .auth-premium .auth-points svg {
  width: 16px;
  height: 16px;
  color: #ff8f52;
}
.crm .auth-mini-panel {
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ffffff18;
  border-radius: 26px;
  background: linear-gradient(145deg, #151a20d9, #0f1318d9);
  box-shadow: 0 24px 70px #0007;
  backdrop-filter: blur(18px);
}
.crm .auth-mini-panel > div:not(.auth-mini-line) {
  padding: 16px;
  border: 1px solid #ffffff10;
  border-radius: 18px;
  background: #ffffff06;
}
.crm .auth-mini-panel span,
.crm .auth-mini-panel strong {
  display: block;
}
.crm .auth-mini-panel span {
  color: #8d98a2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.crm .auth-mini-panel strong {
  margin-top: 8px;
  color: #fffaf4;
  font-size: 28px;
  letter-spacing: -1px;
}
.crm .auth-mini-line {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 4px 2px 2px;
}
.crm .auth-mini-line i {
  display: block;
  width: var(--w);
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f47a35, #ffbd86);
  box-shadow: 0 0 22px #f47a3538;
}
.crm .auth-premium .auth-foot {
  color: #7f8a93;
  font-size: 12px;
  font-weight: 700;
}
.crm .auth-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .75;
  pointer-events: none;
}
.crm .orb-one { width: 240px; height: 240px; left: 14%; top: 18%; background: #f47a352e; }
.crm .orb-two { width: 180px; height: 180px; right: 13%; bottom: 18%; background: #ffb07a18; }
.crm .auth-premium .auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 74px);
  background: linear-gradient(90deg, transparent, #07090b88 18%, #07090bd9);
}
.crm .auth-premium .auth-card {
  width: min(100%, 440px);
  padding: 30px;
  border: 1px solid #ffffff18;
  border-radius: 30px;
  background: linear-gradient(145deg, #151a20e8, #0d1116e8);
  box-shadow: 0 30px 90px #0009;
  backdrop-filter: blur(22px);
}
.crm .auth-premium .auth-card .back-site {
  margin: 0 0 22px;
  color: #9ba6af;
  font-size: 12px;
  font-weight: 700;
}
.crm .auth-premium .auth-card .back-site:hover { color: #ffad7a; }
.crm .auth-card-kicker {
  margin-bottom: 12px;
  padding: 6px 10px;
  font-size: 9px;
}
.crm .auth-premium .auth-card h2 {
  margin: 0;
  color: #fffaf4;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 900;
}
.crm .auth-premium .auth-card > p {
  margin: 10px 0 25px;
  color: #aab4bd;
  font-size: 14px;
  line-height: 1.65;
}
.crm .auth-premium .form-stack { gap: 14px; }
.crm .auth-premium label {
  gap: 8px;
  color: #f5efe8;
  font-size: 12px;
  font-weight: 800;
}
.crm .auth-premium input {
  min-height: 52px;
  border: 1px solid #2f3942;
  border-radius: 16px;
  background: #0b0f13;
  color: #fffaf4;
  padding: 13px 15px;
  box-shadow: inset 0 1px 0 #ffffff06;
}
.crm .auth-premium input::placeholder { color: #68737d; }
.crm .auth-premium input:focus {
  outline: none;
  border-color: #f47a35;
  box-shadow: 0 0 0 4px #f47a3520, inset 0 1px 0 #ffffff08;
}
.crm .auth-premium .form-error {
  min-height: 18px;
  color: #ff9b8f;
  font-size: 12px;
}
.crm .auth-premium button.primary {
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff944f, #f26925);
  color: #111315;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 18px 36px #f47a3530;
}
.crm .auth-premium button.primary:hover {
  background: linear-gradient(135deg, #ffad73, #ff7a2f);
  transform: translateY(-1px);
}
.crm .auth-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.crm .auth-secondary .ghost,
.crm .auth-premium .auth-switch .ghost {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffad7a;
  font-size: 12px;
  font-weight: 800;
}
.crm .auth-premium .auth-card > .upmora-support,
.crm .auth-secondary .upmora-support {
  margin: 0;
  min-height: auto;
  color: #ffad7a;
  font-size: 12px;
  font-weight: 800;
}
.crm .auth-premium .auth-switch {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #ffffff12;
  color: #b3bdc6;
  text-align: center;
  font-size: 13px;
}
.crm .auth-mobile-brand { display: none; }
@media (max-width: 980px) {
  .crm .auth-premium { grid-template-columns: 1fr; }
  .crm .auth-premium .auth-story { display: none; }
  .crm .auth-premium .auth-main { padding: 28px 18px; background: transparent; }
  .crm .auth-mobile-brand { display: block; margin-bottom: 24px; }
  .crm .auth-premium .auth-card { padding: 24px; border-radius: 24px; }
  .crm .auth-premium .auth-card h2 { font-size: 28px; }
  .crm .auth-secondary { align-items: flex-start; flex-direction: column; }
}

/* Variante final: login central minimalista em qualquer largura. */
.crm .auth-premium { grid-template-columns: 1fr; place-items: center; }
.crm .auth-premium .auth-story { display: none; }
.crm .auth-premium .auth-main {
  width: 100%;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px);
  background: transparent;
}
.crm .auth-premium .auth-card {
  max-width: 470px;
  margin: auto;
}
.crm .auth-premium .auth-mobile-brand { display: block; margin-bottom: 26px; }
.crm .auth-premium .auth-mobile-brand .logo span { color: #9ca7b0; }
