:root {
  --brand: #fa641f;
  --brand-dark: #d94d0d;
  --brand-soft: #fff0e8;
  --brand-bright: #c74408;
  --charcoal: #575757;
  --charcoal-dark: #3f3f3f;
  --opr-panel: #ccccc9;
  --opr-panel-lift: #fff0e8;
  --charcoal-soft: #eeeeec;
  --ink: #303030;
  --muted: #777777;
  --line: #e4e4e2;
  --canvas: #f7f7f5;
  --white: #ffffff;
  --sand: #fff0e8;
  --rose: #f5e9e4;
  --blue: #eeeeec;
  --shadow: 0 10px 35px rgba(45, 45, 45, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.app-shell { min-height: 100vh; }

.signed-out .app-shell,
.signed-in .signin-screen { display: none; }

.signin-screen {
  display: block;
  min-height: 100vh;
  color: #f8f5f1;
  background: #292929;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(35,35,35,.72);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.site-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(250,100,31,.28);
}

.site-brand strong,
.site-brand em { display: block; }
.site-brand strong { font-family: Georgia, serif; font-size: 18px; font-weight: 600; }
.site-brand em { margin-top: 2px; color: #f0b69b; font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-nav a {
  min-height: 36px;
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .5px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: white;
  background: rgba(255,255,255,.1);
}

.site-hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 72px) 58px;
}

.site-hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(250,100,31,.18), transparent 35%),
    radial-gradient(circle at 78% 22%, rgba(238,238,236,.24), transparent 26%),
    linear-gradient(135deg, #171717, #4d4d4b 52%, #242424);
}

.site-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.38) 45%, rgba(0,0,0,.08)),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72));
  z-index: 1;
}

.site-hero-video::after {
  content: "";
  position: absolute;
  inset: auto -10% -24% 26%;
  height: 42%;
  background: rgba(250,100,31,.28);
  filter: blur(70px);
  transform: rotate(-8deg);
}

.video-shade {
  position: absolute;
  inset: 12% 0 auto;
  height: 56%;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.05) 8% 8.4%, transparent 8.4% 18%),
    linear-gradient(0deg, transparent 0 18%, rgba(255,255,255,.04) 18% 18.3%, transparent 18.3% 32%);
  opacity: .9;
  transform: skewY(-4deg);
}

.video-dashboard {
  position: absolute;
  z-index: 2;
  right: clamp(12px, 5vw, 82px);
  top: 18%;
  width: min(710px, 55vw);
  min-height: 450px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(248,248,245,.91);
  box-shadow: 0 34px 100px rgba(0,0,0,.36);
  transform: perspective(1200px) rotateY(-11deg) rotateX(4deg);
  animation: videoFloat 9s ease-in-out infinite;
}

.video-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 8px 16px;
  color: #353535;
}

.video-topline span { color: var(--brand-dark); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.video-topline strong { font-family: Georgia, serif; font-size: 22px; font-weight: 600; }

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

.video-panel {
  min-height: 128px;
  padding: 18px;
  border: 1px solid #e3e0dc;
  border-radius: 12px;
  color: #303030;
  background: white;
  box-shadow: 0 12px 28px rgba(32,32,32,.08);
}

.video-panel span,
.video-panel strong,
.video-panel p { display: block; }
.video-panel span { color: #8f8d88; font-size: 8px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.video-panel strong { margin-top: 8px; font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.video-panel p { margin: 9px 0 0; color: #666; font-size: 10px; line-height: 1.5; }

.lead-panel { animation: panelPulse 8s ease-in-out infinite; }
.task-panel { animation: panelPulse 8s ease-in-out 1.8s infinite; }
.pipeline-panel { animation: panelPulse 8s ease-in-out 3.6s infinite; }
.ai-panel { animation: panelPulse 8s ease-in-out 5.4s infinite; }

.video-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 54px;
  margin-top: 16px;
}

.video-bars i {
  flex: 1;
  min-width: 20px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--brand), #244a73);
  animation: barLift 5s ease-in-out infinite;
}
.video-bars i:nth-child(1) { height: 34%; }
.video-bars i:nth-child(2) { height: 66%; animation-delay: .4s; }
.video-bars i:nth-child(3) { height: 46%; animation-delay: .8s; }
.video-bars i:nth-child(4) { height: 82%; animation-delay: 1.2s; }

.video-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.video-flow b {
  min-height: 42px;
  padding: 12px 8px;
  border: 1px solid #ece9e5;
  border-radius: 10px;
  color: #4d4d4b;
  background: #f7f4ef;
  font-size: 9px;
  text-align: center;
}

.video-progress {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 72px);
  bottom: 38px;
  width: min(360px, 34vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.video-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  animation: videoProgress 6s linear infinite;
}

.site-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
  padding-bottom: 32px;
}

.site-hero-copy h1 {
  margin: 10px 0 16px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 500;
  line-height: .9;
}

.site-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.65;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.site-hero-actions .primary-button,
.site-hero-actions .secondary-button { min-height: 44px; text-decoration: none; }
.site-hero-actions .secondary-button { color: white; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.site-hero-actions .secondary-button:hover { border-color: rgba(255,255,255,.52); background: rgba(255,255,255,.13); }

.website-proof,
.website-platform,
.website-login {
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 72px);
  background: #f7f7f5;
}

.website-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.website-proof article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 45px rgba(45,45,45,.06);
}

.website-proof span,
.website-proof strong,
.website-proof p { display: block; }
.website-proof span { color: var(--brand-dark); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.website-proof strong { margin-top: 26px; color: var(--ink); font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.website-proof p { margin: 10px 0 0; color: #696969; font-size: 12px; line-height: 1.6; }

.website-platform {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
  background: #efefec;
}

.website-platform h2,
.login-copy h2 {
  margin: 8px 0 0;
  color: #333;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
}

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

.platform-list span {
  min-height: 58px;
  padding: 19px;
  border: 1px solid #deded9;
  border-radius: 8px;
  color: #3f3f3f;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.website-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  background:
    linear-gradient(90deg, #f7f7f5, #ffffff 55%, #fff5ef);
}

.login-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: #686868;
  font-size: 15px;
  line-height: 1.7;
}

.signin-panel {
  width: 100%;
  padding: 26px;
  border: 1px solid #e0ddd9;
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 60px rgba(35,35,35,.14);
}

.signin-panel-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}

.signin-panel-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.signin-panel-head h2 {
  margin: 0;
  color: var(--charcoal-dark);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.signin-panel-head p {
  margin: 4px 0 0;
  color: #777;
  font-size: 11px;
}

@keyframes videoFloat {
  0%, 100% { transform: perspective(1200px) rotateY(-11deg) rotateX(4deg) translate3d(0, 0, 0); }
  50% { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translate3d(-6px, -10px, 0); }
}

@keyframes panelPulse {
  0%, 28%, 100% { border-color: #e3e0dc; box-shadow: 0 12px 28px rgba(32,32,32,.08); transform: translateY(0); }
  12% { border-color: rgba(250,100,31,.56); box-shadow: 0 18px 40px rgba(250,100,31,.18); transform: translateY(-4px); }
}

@keyframes barLift {
  0%, 100% { transform: scaleY(.74); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes videoProgress {
  0% { transform: translateX(-15%); width: 18%; }
  50% { width: 64%; }
  100% { transform: translateX(460%); width: 18%; }
}

.signin-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #5d5d5d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.signin-field input,
.signin-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dededc;
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.signin-field input:focus,
.signin-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(250,100,31,.1);
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 68px;
}

.password-toggle-button {
  position: absolute;
  right: 6px;
  top: 50%;
  display: inline-flex;
  height: 32px;
  min-width: 54px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid #dededc;
  border-radius: 7px;
  color: var(--brand-dark);
  background: #fff8f4;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.password-toggle-button:hover {
  border-color: rgba(199,68,8,.35);
  background: var(--brand-soft);
}

.signin-help-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 15px;
}

.signin-help-row button {
  border: 0;
  padding: 0;
  color: var(--brand-dark);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.signin-help-row button:hover {
  color: var(--brand);
}

.signin-sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 4px 0 13px;
}

.sso-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dededc;
  border-radius: 8px;
  color: #474747;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sso-button:hover { border-color: #c9c9c6; background: #fbfbfa; }
.sso-button img { display: block; width: 18px; height: 18px; object-fit: contain; }
.signin-submit { width: 100%; margin-top: 4px; }
.signin-note { margin: 14px 0 0; color: #848484; font-size: 10px; line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.sidebar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 9px 28px;
  border-top: 1px solid #d9d9d6;
  color: var(--brand-bright);
  background: var(--opr-panel);
  box-shadow: 0 -8px 24px rgba(45,45,45,.08);
  backdrop-filter: blur(12px);
}

.brand,
.nav-brand {
  display: flex;
  border: 0;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-width: max-content;
  margin: 0;
  min-height: 49px;
  padding: 0 13px 0 9px;
  border-radius: 12px;
  background: #fff8f4;
  cursor: pointer;
}

.nav-brand:hover,
.nav-brand.active { background: var(--opr-panel-lift); box-shadow: inset 0 -3px var(--brand-bright); }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; overflow: hidden; border-radius: 50%; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-text strong, .brand-text em { display: block; font-style: normal; }
.brand-text strong { color: var(--brand-bright); font-family: Georgia, serif; font-size: 17px; font-weight: 650; line-height: 1; }
.brand-text em { margin-top: 3px; color: var(--brand-bright); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }

.crm-nameplate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid #ffe0d1;
  border-radius: 10px;
  background: #fff8f4;
}
.crm-nameplate img { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.crm-nameplate strong, .crm-nameplate span { display: block; }
.crm-nameplate strong { color: var(--charcoal-dark); font-family: Georgia, serif; font-size: 15px; font-weight: 600; line-height: 1; }
.crm-nameplate span { margin-top: 2px; color: var(--brand-dark); font-size: 7px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }

.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: visible;
  padding: 0;
  scrollbar-width: thin;
}

.nav-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 11px;
  color: var(--brand-bright);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: .18s ease;
}

.nav-item:hover { color: var(--brand-bright); background: #fff8f4; }
.nav-item.active { color: var(--brand-bright); background: var(--opr-panel-lift); box-shadow: inset 0 -3px var(--brand-bright); font-weight: 800; }
.nav-icon { width: auto; color: var(--brand-bright); font-size: 14px; text-align: center; }
.nav-item.active .nav-icon { color: var(--brand-bright); }
.nav-count { margin-left: 0; padding: 2px 6px; border-radius: 10px; color: var(--brand-bright); background: rgba(250,100,31,.16); font-size: 9px; }
.nav-item > span:not(.nav-icon):not(.nav-count):not(.nav-dot) { color: #000000; font-size: 13px; }
.nav-dot { width: 6px; height: 6px; margin-left: 0; border-radius: 50%; background: var(--brand-bright); }
.sidebar-spacer, .settings-button { display: none; }
.goal-card {
  margin: 0 4px;
  padding: 14px;
  border: 1px solid #e5e5e3;
  border-radius: 12px;
  color: #666;
  background: #f7f7f5;
}

.goal-head { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .55px; }
.goal-head strong { color: #ff9a6a; }
.goal-card p { margin: 8px 0 0; color: #888; font-size: 11px; }
.progress { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 10px; background: #dfdfdc; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

.agent-card {
  display: flex;
  order: 4;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

.agent-card strong, .agent-card span { display: block; }
.agent-card strong { color: var(--charcoal-dark); font-size: 12px; }
.agent-card span { margin-top: 3px; color: #888; font-size: 10px; }
.agent-card button { border: 0; color: #777; background: transparent; cursor: pointer; }
.agent-summary { text-align: right; }
.profile-avatar-button { position: relative; display: grid; width: 56px; height: 49px; place-items: center start; padding: 0; border-radius: 999px; background: transparent; }
.profile-avatar-button:hover { box-shadow: 0 0 0 3px rgba(199,68,8,.16); }
.profile-chevron { position: absolute; right: 3px; bottom: 5px; display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid rgba(199,68,8,.3); border-radius: 50%; color: var(--brand-bright); background: #fff8f4; font-size: 10px; font-weight: 900; line-height: 1; }
.avatar { display: grid; width: 49px; height: 49px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; color: var(--charcoal); background: #ededeb; font-size: 12px; font-weight: 700; }
.avatar img, .profile-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo { color: transparent; background: #ededeb; }
.avatar-agent { color: white; background: var(--brand); }

.main { min-height: 100vh; margin-left: 0; padding-top: 0; padding-bottom: 92px; }

.topbar { display: none; }

.search-wrap {
  display: flex;
  width: min(190px, 14vw);
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--brand-bright);
  background: white;
  transition: .2s;
}
.nav-search { flex: 0 1 190px; order: 3; }

.search-wrap:focus-within { border-color: #f2ad8d; background: white; box-shadow: 0 0 0 3px rgba(199,68,8,.1); }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--brand-bright); background: transparent; font-size: 13px; }
.search-wrap input::placeholder { color: rgba(199,68,8,.62); opacity: 1; }
.search-wrap kbd { padding: 2px 6px; border: 1px solid #f2d2c4; border-radius: 5px; color: var(--brand-bright); background: #fff8f4; font-family: inherit; font-size: 10px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.icon-button { position: relative; display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.icon-button:hover { background: #f5f5f3; }
.icon-button.small { width: 32px; height: 32px; border: 0; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--brand); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}

.primary-button { border: 1px solid var(--brand); color: white; background: var(--brand); box-shadow: 0 4px 12px rgba(250,100,31,.2); }
.primary-button:hover { border-color: var(--brand-dark); background: var(--brand-dark); transform: translateY(-1px); }
.secondary-button { border: 1px solid #dededc; color: #555; background: white; }
.secondary-button:hover { border-color: #c9c9c6; background: #fbfbfa; }

.content { max-width: 1600px; margin: auto; padding: 34px; }
.view { display: none; animation: fadeIn .22s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading.compact { align-items: center; }
.eyebrow { margin: 0 0 8px !important; color: #7f7f7f !important; font-size: 9px !important; font-weight: 750; letter-spacing: 1.7px; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.6px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; gap: 9px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 15px; }
.metric-card { position: relative; min-height: 142px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 15px rgba(29,49,41,.025); }
.metric-card[data-dashboard-link],
.panel[data-dashboard-link],
.task-mini[data-dashboard-link],
.stage-overview,
.activity-item[data-dashboard-link] {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.metric-card[data-dashboard-link]:hover,
.panel[data-dashboard-link]:hover,
.task-mini[data-dashboard-link]:hover,
.stage-overview:hover,
.activity-item[data-dashboard-link]:hover {
  border-color: #ffd6c3;
  box-shadow: 0 9px 24px rgba(45,45,45,.07);
  transform: translateY(-2px);
}
.metric-card[data-dashboard-link]:focus-visible,
.panel[data-dashboard-link]:focus-visible,
.task-mini[data-dashboard-link]:focus-visible,
.stage-overview:focus-visible,
.activity-item[data-dashboard-link]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.metric-icon { position: absolute; right: 17px; top: 17px; display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; font-size: 16px; }
.metric-icon.sage { color: var(--brand-dark); background: var(--brand-soft); }
.metric-icon.sand { color: var(--charcoal); background: var(--charcoal-soft); }
.metric-icon.blue { color: #6a6a6a; background: #eeeeec; }
.metric-icon.rose { color: var(--brand-dark); background: #f8e4db; }
.metric-top { display: flex; width: calc(100% - 45px); align-items: center; gap: 8px; }
.metric-top > span:first-child { color: #636363; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .55px; }
.trend { display: inline-block; padding: 3px 6px; border-radius: 12px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.trend.positive { color: var(--brand-dark); background: var(--brand-soft); }
.trend.warning { color: var(--brand-dark); background: #f8e8e1; }
.trend.neutral { color: #5f5f5f; background: #eeeeec; }
.metric-card > strong { display: block; margin-top: 18px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.metric-card > p { margin: 4px 0 0; color: #8b8b8b; font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 15px; margin-bottom: 15px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 15px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 15px rgba(29,49,41,.025); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 21px 16px; }
.panel-head h2 { margin: 0; font-family: Georgia, serif; font-size: 17px; font-weight: 550; }
.panel-head p { margin: 5px 0 0; color: #8b8b8b; font-size: 10px; }
.panel-head select, .task-board select { padding: 7px 28px 7px 10px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: #666; background: white; font-size: 10px; }
.text-button { border: 0; color: var(--brand-dark); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }

.chart-summary { display: flex; align-items: center; gap: 28px; padding: 2px 22px 0; }
.chart-summary div { display: grid; gap: 3px; }
.chart-summary span { color: #8b8b8b; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.chart-summary strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.chart-summary > .trend { margin-left: -18px; color: var(--brand-dark); }
.chart { position: relative; height: 245px; margin: 8px 20px 12px 52px; }
.chart svg { position: absolute; inset: 0 0 26px; width: 100%; height: calc(100% - 26px); overflow: visible; }
.grid-lines line { stroke: #ededeb; stroke-width: 1; }
.chart .area { fill: url(#areaGradient); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.2; }
.chart-dots circle { fill: white; stroke: var(--brand); stroke-width: 2; }
.y-labels { position: absolute; right: calc(100% + 10px); top: -1px; bottom: 27px; display: flex; flex-direction: column; justify-content: space-between; color: #9b9b9b; font-size: 8px; white-space: nowrap; }
.x-labels { position: absolute; right: -3px; bottom: 3px; left: -2px; display: flex; justify-content: space-between; color: #8e8e8e; font-size: 9px; }

.dashboard-tasks { padding: 0 20px; }
.task-mini { display: flex; min-height: 58px; align-items: center; gap: 10px; border-bottom: 1px solid #ededeb; }
.check-button { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1.5px solid #bdbdbb; border-radius: 5px; color: transparent; background: white; cursor: pointer; }
.check-button:hover { border-color: var(--brand); }
.check-button.checked { border-color: var(--brand); color: white; background: var(--brand); }
.task-mini > div { min-width: 0; }
.task-mini p { margin: 0; overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-mini span { display: block; margin-top: 4px; color: #929292; font-size: 9px; }
.priority-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--brand); }
.priority-dot.Medium { background: #909090; }
.priority-dot.Low { background: #c2c2c2; }
.add-task-inline { width: 100%; padding: 15px 20px; border: 0; color: var(--brand-dark); background: transparent; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }

.pipeline-overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 4px 20px 23px; }
.stage-overview { padding: 12px; border: 1px solid #ededeb; border-radius: 10px; }
.stage-overview.stage-focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 10px 22px rgba(45,45,45,.08); }
.stage-overview-top { display: flex; align-items: center; gap: 6px; color: #686868; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.stage-color { width: 6px; height: 6px; border-radius: 50%; }
.stage-overview strong { display: block; margin-top: 11px; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.stage-overview p { margin: 4px 0 0; color: #929292; font-size: 9px; }

.activity-list { padding: 0 20px 14px; }
.activity-item { display: flex; min-height: 58px; align-items: center; gap: 11px; border-radius: 10px; padding-inline: 4px; }
.activity-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--brand-dark); background: var(--brand-soft); font-size: 12px; }
.activity-icon.green { color: #555; background: #eeeeec; }
.activity-icon.beige { color: var(--brand-dark); background: #f8e4db; }
.activity-icon.blue { color: #646464; background: var(--blue); }
.activity-item p { margin: 0; font-size: 10px; line-height: 1.35; }
.activity-item span { display: block; margin-top: 4px; color: #999; font-size: 8px; }

.pipeline-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.pipeline-summary div { padding: 17px 20px; border-right: 1px solid var(--line); }
.pipeline-summary div:last-child { border: 0; }
.pipeline-summary span, .pipeline-summary strong { display: block; }
.pipeline-summary span { color: #878787; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.pipeline-summary strong { margin-top: 6px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }

.pipeline-type-tabs { display: flex; gap: 8px; margin-bottom: 13px; overflow-x: auto; padding-bottom: 2px; }
.pipeline-type-tab { display: inline-flex; min-width: max-content; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: #656565; background: white; font-size: 9px; font-weight: 750; cursor: pointer; }
.pipeline-type-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--tab-color, var(--brand)); }
.pipeline-type-tab span { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #8a8a8a; background: #eeeeec; font-size: 8px; }
.pipeline-type-tab.active { border-color: var(--brand); color: white; background: var(--brand); }
.pipeline-type-tab.active i { background: white; }
.pipeline-type-tab.active span { color: var(--brand-dark); background: white; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.kanban-column { min-height: 550px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #f2f2f0; }
.kanban-column.drag-over { outline: 2px dashed var(--brand); outline-offset: -4px; }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 3px 13px; }
.column-title { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .5px; }
.column-title i { width: 7px; height: 7px; border-radius: 50%; }
.column-head span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #686868; background: #e8e8e6; font-size: 9px; font-weight: 700; }
.deal-list { display: grid; gap: 7px; }
.deal-card { padding: 14px; border: 1px solid #e4e4e2; border-radius: 11px; background: white; box-shadow: 0 3px 8px rgba(45,45,45,.035); cursor: pointer; transition: .18s; }
.deal-card:hover { border-color: #d0d0cd; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,45,45,.07); }
.deal-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.deal-card:active { cursor: grabbing; }
.deal-card.dragging { opacity: .45; }
.compact-deal-card { min-height: 76px; padding: 9px 10px; }
.deal-card-top { display: flex; align-items: center; gap: 9px; }
.deal-card-top .avatar { width: 31px; height: 31px; font-size: 9px; }
.deal-card-top strong { display: block; font-size: 12px; line-height: 1.15; }
.deal-card-top span { display: block; margin-top: 3px; color: #8d8d8d; font-size: 9px; }
.temperature { margin-left: auto; padding: 3px 6px; border-radius: 7px; color: var(--brand-dark) !important; background: var(--brand-soft); font-size: 7px !important; font-weight: 750; text-transform: uppercase; }
.temperature.Warm { color: #5e5e5e !important; background: #ececea; }
.temperature.Cool { color: #777 !important; background: #f2f2f0; }
.deal-meta-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; color: #898989; font-size: 8px; }
.amelia-chip { padding: 3px 6px; border-radius: 999px; color: #777; background: #f0f0ee; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.amelia-chip.active { color: var(--brand-dark); background: var(--brand-soft); }
.deal-property { margin: 13px 0 8px; color: #707070; font-size: 9px; }
.docusign-link-row { margin: 0 0 9px; }
.docusign-link-row a, .docusign-link-row button { display: inline-flex; align-items: center; min-height: 24px; padding: 0 7px; border: 1px solid #dfe7ff; border-radius: 7px; color: #3153b8; background: #f7f9ff; font-size: 8px; font-weight: 750; text-decoration: none; cursor: pointer; }
.docusign-link-row button { font-family: inherit; }
.deal-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid #efefed; }
.compact-deal-footer { margin-top: 9px; padding-top: 7px; }
.deal-footer strong { font-family: Georgia, serif; font-size: 14px; font-weight: 500; }
.deal-footer span { color: #909090; font-size: 8px; }
.deal-tags, .inline-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.lead-tag { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 6px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tag-color) 35%, white); border-radius: 999px; color: color-mix(in srgb, var(--tag-color) 78%, #222); background: color-mix(in srgb, var(--tag-color) 11%, white); font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.deal-card-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.deal-card-actions button, .row-ai-button { flex: 1; padding: 6px 8px; border: 1px solid #e1e1df; border-radius: 7px; color: #656565; background: #fafaf9; font-size: 8px; font-weight: 750; cursor: pointer; }
.deal-card-actions button:last-child, .row-ai-button { border-color: #ffd6c3; color: var(--brand-dark); background: #fff7f2; }
.pipeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.pipeline-toolbar strong, .pipeline-toolbar span { display: block; }
.pipeline-toolbar strong { font-size: 10px; }
.pipeline-toolbar > div > span { margin-top: 3px; color: #8a8a8a; font-size: 8px; }
.tag-filter-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tag-filter { display: flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: #696969; background: #fafaf9; font-size: 8px; cursor: pointer; }
.tag-filter i { width: 6px; height: 6px; border-radius: 50%; }
.tag-filter span { display: inline; margin: 0; color: #9a9a9a; }
.tag-filter.active { border-color: var(--brand); color: white; background: var(--brand); }
.tag-filter.active i { background: white !important; }
.tag-filter.active span { color: white; opacity: .8; }

.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.filter-search { display: flex; width: 290px; height: 39px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #888; background: white; }
.filter-search input { width: 100%; border: 0; outline: 0; font-size: 11px; }
.filter-buttons { display: flex; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #707070; background: white; font-size: 10px; cursor: pointer; white-space: nowrap; }
.filter-chip span { padding: 1px 6px; border-radius: 999px; color: #777; background: #ededeb; font-size: 8px; }
.filter-chip.active { border-color: var(--brand); color: white; background: var(--brand); }
.filter-chip.active span { color: var(--brand-dark); background: white; }
.lead-intake-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding: 13px 15px;
  border: 1px solid #ffd6c3;
  border-radius: 13px;
  color: #7a4a35;
  background: #fff7f2;
}
.lead-intake-banner strong, .lead-intake-banner span { display: block; font-size: 10px; }
.lead-intake-banner span { color: #8a6a5d; }
.contact-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contact-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.contact-table th { padding: 13px 17px; border-bottom: 1px solid var(--line); color: #8a8a8a; background: #fafafa; font-size: 9px; font-weight: 750; letter-spacing: .5px; text-align: left; text-transform: uppercase; }
.contact-table td { padding: 15px 17px; border-bottom: 1px solid #ededeb; color: #666; font-size: 10px; }
.contact-table tbody tr:last-child td { border: 0; }
.contact-table tbody tr:hover { background: #fbfbfa; }
.clickable-contact-row { cursor: pointer; }
.clickable-contact-row:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.contact-person { display: flex; align-items: center; gap: 10px; }
.contact-person strong, .contact-person span { display: block; }
.contact-person strong { color: var(--ink); font-size: 11px; }
.contact-person span { margin-top: 3px; color: #8d8d8d; font-size: 9px; }
.type-tag, .status-tag { display: inline-block; padding: 4px 7px; border-radius: 7px; font-size: 8px; font-weight: 700; }
.type-tag { color: #626262; background: #eeeeec; }
.status-tag { color: var(--brand-dark); background: var(--brand-soft); }
.status-tag.Nurture { color: #5f5f5f; background: #ededeb; }
.status-tag.Lead { color: #fff; background: var(--brand); }
.row-menu { border: 0; background: transparent; cursor: pointer; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.row-ai-button { min-width: 48px; }
.danger-button { border-color: #f1c8bb !important; color: #a43b20 !important; background: #fff5f1 !important; }

.archive-summary, .admin-summary, .calendar-summary, .commission-summary, .interaction-summary, .lead-summary, .marketing-summary, .phone-summary, .settings-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.archive-summary div, .admin-summary div, .calendar-summary div, .commission-summary div, .interaction-summary div, .lead-summary div, .marketing-summary div, .phone-summary div, .settings-summary div { padding: 17px 20px; border-right: 1px solid var(--line); }
.archive-summary div:last-child, .admin-summary div:last-child, .calendar-summary div:last-child, .commission-summary div:last-child, .interaction-summary div:last-child, .lead-summary div:last-child, .marketing-summary div:last-child, .phone-summary div:last-child, .settings-summary div:last-child { border-right: 0; }
.archive-summary span, .archive-summary strong, .admin-summary span, .admin-summary strong, .calendar-summary span, .calendar-summary strong, .commission-summary span, .commission-summary strong, .interaction-summary span, .interaction-summary strong, .lead-summary span, .lead-summary strong, .marketing-summary span, .marketing-summary strong, .phone-summary span, .phone-summary strong, .settings-summary span, .settings-summary strong { display: block; }
.archive-summary span, .admin-summary span, .calendar-summary span, .commission-summary span, .interaction-summary span, .lead-summary span, .marketing-summary span, .phone-summary span, .settings-summary span { color: #858585; font-size: 9px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.archive-summary strong, .admin-summary strong, .calendar-summary strong, .commission-summary strong, .interaction-summary strong, .lead-summary strong, .marketing-summary strong, .phone-summary strong, .settings-summary strong { margin-top: 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.lead-workspace-grid { display: grid; grid-template-columns: 1fr; gap: 15px; align-items: start; }
.lead-intake-panel, .lead-pipeline-panel { padding: 20px; }
.lead-table { min-width: 980px; }
.lead-intake-row .row-ai-button { white-space: nowrap; }
.email-preview-cell { min-width: 310px; max-width: 520px; }
.email-preview-cell strong, .email-preview-cell span { display: block; }
.email-preview-cell strong { color: var(--ink); font-size: 10px; font-weight: 750; }
.email-preview-cell span {
  margin-top: 5px;
  display: -webkit-box;
  overflow: hidden;
  color: #777;
  font-size: 9px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.commission-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; align-items: start; }
.commission-workspace-panel { padding: 20px; }
.commission-detail-panel { padding-top: 16px; }
.commission-command-row { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(220px, 320px); gap: 12px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.commission-package-select { display: grid; gap: 6px; }
.commission-package-select span { color: #858585; font-size: 8px; font-weight: 850; letter-spacing: .55px; text-transform: uppercase; }
.commission-package-select select { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: white; font: inherit; font-size: 10px; font-weight: 750; }
.commission-package-list { display: grid; gap: 10px; }
.commission-package-card { display: grid; gap: 8px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #fafaf9; font-family: inherit; text-align: left; cursor: pointer; transition: .18s ease; }
.commission-package-card:hover, .commission-package-card.active { border-color: #f6b99d; background: #fff8f4; box-shadow: 0 8px 22px rgba(45,45,45,.06); transform: translateY(-1px); }
.commission-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.commission-card-head strong { color: var(--ink); font-size: 11px; }
.commission-package-card > span, .commission-package-card small { color: #777; font-size: 8px; line-height: 1.4; }
.commission-card-meta { display: flex; justify-content: space-between; gap: 8px; color: #5d5d5d; font-size: 8px; font-weight: 750; }
.commission-status { display: inline-flex; width: max-content; padding: 4px 7px; border-radius: 7px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 850; letter-spacing: .35px; text-transform: uppercase; white-space: nowrap; }
.commission-status.submitted { color: var(--brand-dark); background: var(--brand-soft); }
.commission-status.needs-corrections { color: #8b3b22; background: #ffe0d1; }
.commission-status.approved { color: #155c36; background: #e7f7ed; }
.commission-progress { overflow: hidden; height: 6px; border-radius: 999px; background: #e8e8e6; }
.commission-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.commission-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.commission-detail-head h2 { margin: 8px 0 0; font-family: Georgia, serif; font-size: 24px; font-weight: 550; }
.commission-detail-head p { margin: 5px 0 0; color: #777; font-size: 10px; }
.commission-auth-badge { min-width: 190px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.commission-auth-badge.approved { border-color: #bce8ca; background: #f0fbf4; }
.commission-auth-badge span, .commission-auth-badge strong { display: block; }
.commission-auth-badge span { color: #7f7f7f; font-size: 8px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.commission-auth-badge strong { margin-top: 6px; color: var(--ink); font-size: 14px; }
.commission-detail-tabs { display: flex; gap: 7px; margin-top: 15px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #f5f5f3; }
.commission-detail-tabs button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; color: #686868; background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.commission-detail-tabs button:hover, .commission-detail-tabs button.active { color: white; background: var(--brand); box-shadow: 0 8px 18px rgba(255, 98, 31, .16); }
.commission-file-tabs { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #f5f5f3; }
.commission-file-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; color: #5f5f5f; background: transparent; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; transition: .18s ease; }
.commission-file-tabs button:hover, .commission-file-tabs button.active { color: white; background: var(--brand); box-shadow: 0 8px 18px rgba(255, 98, 31, .16); }
.commission-tab-panel { margin-top: 15px; }
.commission-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 16px 0; }
.commission-info-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf9; }
.commission-info-grid span, .commission-info-grid strong { display: block; }
.commission-info-grid span { color: #858585; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.commission-info-grid strong { margin-top: 4px; font-size: 11px; }
.commission-detail-section { margin-top: 15px; }
.commission-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.commission-step-grid button { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: #fafaf9; font: inherit; text-align: left; cursor: pointer; }
.commission-step-grid button.complete { border-color: #d8eadf; background: #fbfffc; }
.commission-step-grid button.active { border-color: var(--brand); background: #fff8f4; box-shadow: inset 0 0 0 1px rgba(255, 98, 31, .2); }
.commission-step-grid span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: #8b3b22; background: #ffe0d1; font-size: 11px; font-weight: 900; }
.commission-step-grid button.complete span { color: #155c36; background: #e7f7ed; }
.commission-step-grid strong, .commission-step-grid small { display: block; }
.commission-step-grid strong { color: var(--ink); font-size: 10px; }
.commission-step-grid small { color: #777; font-size: 8px; line-height: 1.35; }
.commission-package-note { display: grid; gap: 4px; padding: 13px; border: 1px solid #ffd6c3; border-radius: 12px; background: #fff8f4; }
.commission-package-note strong { color: var(--ink); font-size: 11px; }
.commission-package-note span { color: #7b5b4e; font-size: 9px; line-height: 1.45; }
.commission-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.commission-finance-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.commission-edit-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 10px 24px rgba(45,45,45,.04); }
.compact-head { padding: 0; border: 0; }
.compact-head h2 { font-size: 16px; }
.compact-head p { max-width: 420px; }
.commission-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.commission-edit-field { display: grid; gap: 5px; }
.commission-edit-field.full { grid-column: 1 / -1; }
.commission-edit-field span, .commission-calculated-field span { color: #858585; font-size: 7px; font-weight: 850; letter-spacing: .45px; text-transform: uppercase; }
.commission-edit-field input, .commission-edit-field select, .commission-edit-field textarea { width: 100%; min-height: 35px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fafaf9; font: inherit; font-size: 10px; }
.commission-edit-field textarea { resize: vertical; line-height: 1.45; }
.commission-edit-field input:focus, .commission-edit-field select:focus, .commission-edit-field textarea:focus { border-color: var(--brand); background: white; box-shadow: 0 0 0 2px rgba(255, 98, 31, .1); }
.commission-edit-field.readonly input, .commission-edit-field.readonly select, .commission-edit-field.readonly textarea { color: #656565; border-color: #e4e4e1; background: #f1f1ef; cursor: not-allowed; }
.commission-calculated-field { display: grid; gap: 5px; min-height: 58px; align-content: center; padding: 10px; border: 1px solid #ffd6c3; border-radius: 9px; background: #fff8f4; }
.commission-calculated-field.full { grid-column: 1 / -1; }
.commission-calculated-field strong { color: var(--ink); font-family: Georgia, serif; font-size: 20px; font-weight: 550; }
.commission-summary-list { display: grid; gap: 9px; }
.commission-summary-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf9; }
.commission-summary-list span { color: #858585; font-size: 8px; font-weight: 850; letter-spacing: .45px; text-transform: uppercase; }
.commission-summary-list strong { color: var(--ink); font-family: Georgia, serif; font-size: 20px; font-weight: 550; }
.commission-progress-label { color: var(--brand-dark); font-family: Georgia, serif; font-size: 18px; font-weight: 550; }
.commission-doc-toolbar { display: flex; align-items: center; gap: 9px; }
.commission-doc-toolbar .secondary-button { min-height: 32px; padding: 0 10px; font-size: 8px; }
.commission-documents-workspace { display: grid; grid-template-columns: minmax(320px, .84fr) minmax(340px, 1fr); gap: 14px; align-items: start; }
.commission-doc-list { display: grid; gap: 9px; }
.commission-doc-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.commission-doc-row.uploaded { border-color: #d8eadf; background: #fbfffc; }
.commission-doc-check { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: #8b3b22; background: #ffe0d1; font-size: 12px; font-weight: 900; }
.commission-doc-row.uploaded .commission-doc-check { color: #155c36; background: #e7f7ed; }
.commission-doc-row strong, .commission-doc-row span, .commission-doc-row small { display: block; }
.commission-doc-row strong { color: var(--ink); font-size: 10px; }
.commission-doc-row span { margin-top: 4px; color: #777; font-size: 8px; line-height: 1.4; }
.commission-doc-row small { margin-top: 5px; color: #969696; font-size: 8px; }
.commission-file-preview { display: grid; gap: 3px; margin-top: 8px; padding: 9px 10px; border: 1px dashed #d6d6d2; border-radius: 9px; background: white; }
.commission-file-preview.has-file { border-style: solid; border-color: #bce8ca; background: #f0fbf4; }
.commission-file-preview.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255, 98, 31, .1); }
.commission-file-preview span { margin: 0; color: #858585; font-size: 7px; font-weight: 850; letter-spacing: .45px; line-height: 1.1; text-transform: uppercase; }
.commission-file-preview strong { overflow: hidden; max-width: 100%; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.commission-file-preview small { margin: 0; color: #777; font-size: 8px; }
.commission-file-link { overflow: hidden; width: 100%; padding: 0; border: 0; color: var(--brand-dark); background: transparent; font: inherit; font-size: 10px; font-weight: 850; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.commission-file-link:hover { text-decoration: underline; }
.commission-doc-row .secondary-button { min-height: 32px; padding: 0 10px; font-size: 8px; }
.commission-document-review { position: sticky; top: 92px; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 12px 30px rgba(45,45,45,.05); }
.commission-review-head span, .commission-review-head h3, .commission-review-head p { display: block; margin: 0; }
.commission-review-head span { color: #858585; font-size: 8px; font-weight: 850; letter-spacing: .55px; text-transform: uppercase; }
.commission-review-head h3 { margin-top: 5px; color: var(--ink); font-family: Georgia, serif; font-size: 19px; font-weight: 550; }
.commission-review-head p { margin-top: 5px; color: #777; font-size: 9px; line-height: 1.4; }
.commission-review-canvas { overflow: hidden; display: grid; min-height: 420px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #f7f7f5; }
.commission-review-canvas img, .commission-review-canvas iframe { width: 100%; height: 100%; min-height: 420px; border: 0; object-fit: contain; background: white; }
.commission-review-empty { display: grid; gap: 6px; max-width: 310px; padding: 18px; text-align: center; }
.commission-review-empty strong { color: var(--ink); font-size: 12px; }
.commission-review-empty span { color: #777; font-size: 9px; line-height: 1.5; }
.commission-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.commission-review-box { display: grid; gap: 11px; margin-top: 16px; padding: 14px; border: 1px solid #ffd6c3; border-radius: 12px; background: #fff8f4; }
.commission-approval-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.commission-review-box h2 { margin: 0; font-family: Georgia, serif; font-size: 17px; font-weight: 550; }
.commission-review-box p { margin: 5px 0 0; color: #7b5b4e; font-size: 9px; line-height: 1.45; }
.commission-review-box textarea { width: 100%; padding: 11px; resize: vertical; border: 1px solid #f2c5b0; border-radius: 9px; outline: 0; color: var(--ink); background: white; font: inherit; font-size: 10px; line-height: 1.45; }
.commission-review-note-readonly { display: grid; gap: 6px; padding: 11px; border: 1px solid #f2c5b0; border-radius: 9px; background: white; }
.commission-review-note-readonly span { color: #8b6b5d; font-size: 8px; font-weight: 850; letter-spacing: .45px; text-transform: uppercase; }
.commission-review-note-readonly strong { color: var(--ink); font-size: 10px; line-height: 1.45; white-space: pre-wrap; }
.commission-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.commission-timeline { display: grid; gap: 9px; }
.commission-timeline > div { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.commission-timeline span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 900; }
.commission-timeline strong, .commission-timeline small, .commission-timeline em { display: block; }
.commission-timeline strong { color: var(--ink); font-size: 10px; }
.commission-timeline small { margin-top: 3px; color: #777; font-size: 8px; line-height: 1.4; }
.commission-timeline em { color: #969696; font-size: 8px; font-style: normal; white-space: nowrap; }
.tall-empty { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 5px; }
.compact-search { width: min(260px, 100%); }
.lead-highlight-list { display: grid; gap: 9px; padding: 0 20px 16px; }
.lead-highlight-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: inherit; background: #fafaf9; font-family: inherit; text-align: left; cursor: pointer; }
.lead-highlight-card strong, .lead-highlight-card span { display: block; }
.lead-highlight-card strong { font-size: 10px; }
.lead-highlight-card span { margin-top: 3px; color: #858585; font-size: 8px; line-height: 1.4; }
.hub-grid { display: grid; gap: 15px; }
.hub-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; min-height: 250px; }
.hub-card h2 { margin: 4px 0 8px; font-family: Georgia, serif; font-size: 20px; font-weight: 550; }
.hub-card p:not(.eyebrow) { margin: 0; color: #777; font-size: 11px; line-height: 1.6; }
.hub-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 18px; font-weight: 800; }
.hub-card-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.hub-card-stats div { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf9; }
.hub-card-stats span, .hub-card-stats strong { display: block; }
.hub-card-stats span { color: #858585; font-size: 8px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.hub-card-stats strong { margin-top: 4px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.hub-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.settings-tabs { display: flex; gap: 8px; margin-bottom: 18px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.settings-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 8px; color: #696969; background: transparent; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.settings-tabs button.active { color: white; background: var(--brand); }
.contact-detail-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; }
.contact-record-header { position: static; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(247,247,245,.94); backdrop-filter: blur(10px); }
.contact-detail-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-detail-title h1 { margin: 2px 0 4px; font-family: Georgia, serif; font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.contact-detail-title span { color: #777; font-size: 11px; }
.large-avatar { width: 58px; height: 58px; font-size: 16px; }
.contact-detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 15px; margin-bottom: 15px; }
.contact-info-panel, .contact-links-panel, .detail-section { padding-bottom: 18px; overflow: hidden; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 20px 2px; }
.detail-info-grid div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf9; }
.detail-info-grid span, .detail-info-grid strong, .detail-info-grid a { display: block; overflow-wrap: anywhere; }
.detail-info-grid span { color: #858585; font-size: 8px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.detail-info-grid strong, .detail-info-grid a { margin-top: 5px; color: var(--ink); font-size: 11px; font-weight: 750; text-decoration: none; }
.detail-info-grid a { color: var(--brand-dark); }
.detail-link-list { display: grid; gap: 8px; padding: 0 20px 2px; }
.detail-link-list a { display: flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid #dfe7ff; border-radius: 9px; color: #3153b8; background: #f7f9ff; font-size: 10px; font-weight: 750; text-decoration: none; }
.detail-link-list a.docusign-detail-button { justify-content: center; border-color: #123f8c; color: #ffffff; background: #123f8c; }
.contact-detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.detail-list { display: grid; gap: 9px; padding: 0 20px; }
.detail-list-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf9; }
.detail-list-item span, .detail-list-item strong, .detail-list-item small { display: block; }
.detail-list-item span { color: var(--brand-dark); font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.detail-list-item strong { margin-top: 4px; color: var(--ink); font-size: 11px; }
.detail-list-item small { margin-top: 4px; color: #8a8a8a; font-size: 8px; }
.detail-list-item p { margin: 8px 0 0; color: #666; font-size: 9px; line-height: 1.5; }
.small-empty { padding: 12px; font-size: 9px; }
.contact-workspace-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(520px, 2fr) minmax(260px, 1fr); gap: 15px; align-items: start; }
.contact-profile-rail, .contact-center-stream, .contact-right-rail { display: grid; gap: 15px; min-width: 0; }
.contact-profile-card, .contact-facts-card, .contact-action-desk, .contact-communication-panel { overflow: hidden; }
.contact-left-section .contact-side-content { padding: 14px 18px 18px; }
.contact-profile-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-profile-head h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 550; }
.contact-profile-head span { display: block; margin-top: 4px; color: #777; font-size: 10px; }
.contact-methods { display: grid; gap: 9px; margin-top: 15px; }
.contact-info-line { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf9; }
.contact-info-line span, .contact-info-line strong, .contact-info-line a { display: block; overflow-wrap: anywhere; }
.contact-info-line span { color: #858585; font-size: 8px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.contact-info-line strong, .contact-info-line a { margin-top: 5px; color: var(--ink); font-size: 11px; font-weight: 750; text-decoration: none; }
.contact-info-line a { color: var(--brand-dark); }
.stacked-info { grid-template-columns: 1fr; }
.contact-social-card { overflow: hidden; }
.contact-social-card .panel-head { border-bottom: 1px solid var(--line); }
.social-profile-list { display: grid; gap: 8px; }
.social-profile-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fafaf9; text-decoration: none; transition: .18s ease; }
.social-profile-link:hover { border-color: color-mix(in srgb, var(--social-color) 40%, var(--line)); background: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(45,45,45,.06); }
.social-profile-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--social-color); font-size: 9px; font-weight: 850; line-height: 1; text-transform: uppercase; }
.social-profile-link strong { overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.social-profile-link small { color: #7f7f7f; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.contact-action-desk { padding-bottom: 18px; }
.contact-comm-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 0 20px 14px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #f7f7f4; }
.contact-comm-tab { min-height: 34px; border: 0; border-radius: 8px; color: #6e6e6a; background: transparent; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; transition: .16s ease; }
.contact-comm-tab.active { color: var(--brand-dark); background: #fff; box-shadow: 0 5px 16px rgba(29,49,41,.08); }
.contact-comm-panel { display: none; gap: 12px; padding: 0 20px; }
.contact-comm-panel.active { display: grid; }
.contact-comm-panel textarea, .contact-comm-panel input { display: block; width: 100%; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 12px; line-height: 1.5; resize: vertical; }
.contact-email-compose { display: grid; gap: 9px; }
.contact-email-compose label { display: grid; gap: 6px; color: #6d6d68; font-size: 9px; font-weight: 850; letter-spacing: .45px; text-transform: uppercase; }
.comm-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.comm-account-grid div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf9; }
.comm-account-grid span, .comm-account-grid strong, .comm-account-grid small { display: block; overflow-wrap: anywhere; }
.comm-account-grid span { color: #858585; font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.comm-account-grid strong { margin-top: 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.comm-account-grid small { margin-top: 5px; color: #858585; font-size: 9px; font-weight: 750; }
.comm-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.comm-panel-actions .primary-button, .comm-panel-actions .secondary-button { flex: 1 1 135px; justify-content: center; text-decoration: none; }
.contact-action-desk textarea:focus, .contact-action-desk input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,100,31,.1); }
.contact-action-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.contact-action-row button { flex: 1 1 118px; }
.contact-communication-panel .panel-head { border-bottom: 1px solid var(--line); }
.section-count { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.timeline-list { position: relative; padding-top: 14px; padding-bottom: 18px; }
.timeline-list::before { content: ""; position: absolute; top: 18px; bottom: 20px; left: 31px; width: 2px; background: #eeeeec; }
.timeline-list .detail-list-item { position: relative; margin-left: 20px; background: #fff; }
.timeline-list .detail-list-item::before { content: ""; position: absolute; top: 18px; left: -20px; width: 10px; height: 10px; border: 3px solid white; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #f5c7b1; }
.contact-right-rail { align-content: start; }
.contact-side-section { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 15px rgba(29,49,41,.025); overflow: hidden; }
.contact-static-card { display: grid; gap: 10px; padding: 14px; }
.contact-static-card h3 { margin: 0; color: #626262; font-size: 12px; font-weight: 800; }
.docusign-static-card { padding: 10px; }
.docusign-static-card .docusign-detail-button { display: flex; min-height: 40px; align-items: center; justify-content: center; border: 1px solid #123f8c; border-radius: 9px; color: #ffffff; background: #123f8c; font-size: 10px; font-weight: 850; text-decoration: none; }
.docusign-static-card .docusign-detail-button:hover { background: #0d3374; border-color: #0d3374; }
.contact-side-section summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; color: #626262; cursor: pointer; list-style: none; }
.contact-side-section summary::-webkit-details-marker { display: none; }
.contact-side-section summary span { font-size: 12px; font-weight: 800; }
.contact-side-section summary strong { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; }
.contact-side-tools { display: inline-flex; align-items: center; gap: 7px; }
.side-card-edit { min-height: 26px; padding: 0 9px; border: 1px solid #ffd6c3; border-radius: 999px; color: var(--brand-dark); background: #fff7f2; font-size: 8px; font-weight: 850; cursor: pointer; }
.side-card-edit:hover { border-color: var(--brand); background: var(--brand-soft); }
.contact-side-content { display: grid; gap: 8px; padding: 0 12px 12px; }
.compact-detail-item { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf9; }
.compact-detail-item strong, .compact-detail-item span, .compact-detail-item p { display: block; }
.compact-detail-item strong { color: var(--ink); font-size: 11px; }
.compact-detail-item span { margin-top: 4px; color: #858585; font-size: 8px; line-height: 1.4; }
.compact-detail-item p { margin: 7px 0 0; color: #686868; font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.archive-panel, .admin-settings-panel, .admin-tools-panel, .admin-activity-panel { padding: 20px; }
.archive-list { display: grid; gap: 9px; }
.archive-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.archive-card strong, .archive-card span { display: block; }
.archive-card strong { font-size: 11px; }
.archive-card span { margin-top: 4px; color: #858585; font-size: 8px; line-height: 1.45; }
.archive-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.archive-actions .secondary-button { min-height: 30px; padding: 0 10px; font-size: 8px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .65fr); gap: 15px; }
.admin-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin-top: 4px; }
.admin-select-grid { margin-top: 16px; }
.admin-tool-list { display: grid; gap: 8px; }
.admin-tool-list button { justify-content: center; width: 100%; }
.admin-note { margin-top: 13px; padding: 11px; border: 1px solid #f0dfd6; border-radius: 9px; color: #6f5a50; background: #fff8f4; font-size: 9px; line-height: 1.5; }
.admin-activity-panel { margin-top: 15px; }

.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 15px; margin-bottom: 15px; }
.calendar-panel, .calendar-agenda-panel, .calendar-integration-panel { padding: 20px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-bottom: 7px; color: #898989; font-size: 8px; font-weight: 800; letter-spacing: .5px; text-align: center; text-transform: uppercase; }
.calendar-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendar-day {
  min-height: 86px;
  padding: 8px;
  border: 1px solid #e8e8e5;
  border-radius: 10px;
  color: inherit;
  background: #fbfbfa;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}
.calendar-day.muted { background: transparent; border-color: transparent; }
.calendar-day:hover { border-color: #ffd6c3; background: #fffaf7; transform: translateY(-1px); }
.calendar-day.today { border-color: var(--brand); background: #fff7f2; box-shadow: inset 0 0 0 1px rgba(250,100,31,.14); }
.calendar-day strong { display: block; margin-bottom: 6px; color: var(--charcoal-dark); font-size: 10px; }
.calendar-day span, .calendar-day em { display: block; margin-top: 4px; overflow: hidden; color: var(--brand-dark); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day em { color: #888; }
.calendar-agenda-list { display: grid; gap: 9px; }
.calendar-event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafaf9;
}
.calendar-date-pill { display: grid; min-height: 54px; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); text-align: center; }
.calendar-date-pill strong, .calendar-date-pill span { display: block; }
.calendar-date-pill strong { font-size: 9px; }
.calendar-date-pill span { margin-top: 4px; color: #8a4a2e; font-size: 8px; }
.calendar-event-main strong, .calendar-event-main span, .calendar-event-main p { display: block; }
.calendar-event-main strong { color: var(--ink); font-size: 11px; }
.calendar-event-main span { margin-top: 4px; color: #858585; font-size: 8px; line-height: 1.45; }
.calendar-event-main p { margin: 7px 0 0; color: #686868; font-size: 8px; line-height: 1.45; }
.calendar-source { padding: 4px 7px; border-radius: 7px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.calendar-source.synced { color: var(--brand-dark); background: var(--brand-soft); }
.calendar-provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calendar-provider-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.calendar-provider-card h3 { margin: 0; font-family: Georgia, serif; font-size: 15px; font-weight: 550; }
.calendar-provider-card p { margin: 5px 0 0; color: #818181; font-size: 9px; line-height: 1.45; }
.calendar-provider-card .marketplace-status { position: static; width: max-content; }
.calendar-provider-card .mini-action { align-self: end; }
.custom-calendar-list { display: grid; gap: 8px; margin-top: 14px; }
.marketing-builder-panel, .marketing-campaign-panel, .marketing-activity-panel { padding: 20px; }
.marketing-strategy-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.marketing-strategy-strip div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.marketing-strategy-strip strong, .marketing-strategy-strip span { display: block; }
.marketing-strategy-strip strong { color: var(--charcoal-dark); font-size: 11px; }
.marketing-strategy-strip span { margin-top: 5px; color: #828282; font-size: 9px; line-height: 1.45; }
.marketing-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 15px; margin-top: 15px; }
.marketing-campaign-list { display: grid; gap: 11px; }
.marketing-campaign-card { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(300px, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.campaign-main h3 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 16px; font-weight: 550; }
.campaign-main p { margin: 6px 0 0; color: #787878; font-size: 9px; line-height: 1.45; }
.campaign-status { display: inline-flex; padding: 4px 7px; border-radius: 7px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.campaign-status.Active { color: var(--brand-dark); background: var(--brand-soft); }
.campaign-status.Draft { color: #666; background: #eeeeec; }
.campaign-platforms, .platform-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.campaign-platforms span, .platform-tags span { padding: 4px 6px; border-radius: 999px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 750; }
.campaign-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.campaign-stats div { padding: 9px; border-radius: 9px; background: #fafaf9; }
.campaign-stats span, .campaign-stats strong { display: block; }
.campaign-stats span { color: #858585; font-size: 7px; text-transform: uppercase; }
.campaign-stats strong { margin-top: 4px; color: var(--charcoal-dark); font-size: 11px; }
.campaign-actions { display: grid; gap: 7px; }
.campaign-actions .secondary-button { min-height: 32px; padding: 0 10px; font-size: 8px; }
.marketing-platform-card { min-height: 245px; }
.marketing-platform-card .platform-tags { margin-bottom: 28px; }
.marketing-platform-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.marketing-strategy-preview { display: grid; gap: 10px; }
.strategy-card { padding: 14px; border: 1px solid #ffd6c3; border-radius: 12px; background: #fff7f2; }
.strategy-card span, .strategy-card strong, .strategy-card p { display: block; }
.strategy-card span { color: #8a6a5d; font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.strategy-card strong { margin-top: 5px; color: var(--brand-dark); font-family: Georgia, serif; font-size: 17px; font-weight: 550; }
.strategy-card p { margin: 6px 0 0; color: #705144; font-size: 9px; line-height: 1.5; }
.strategy-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strategy-metrics div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf9; }
.strategy-metrics span, .strategy-metrics strong { display: block; }
.strategy-metrics span { color: #858585; font-size: 7px; text-transform: uppercase; }
.strategy-metrics strong { margin-top: 4px; font-size: 12px; }
.calendar-day-editor { display: grid; gap: 12px; }
.day-editor-summary { padding: 12px; border: 1px solid #ffd6c3; border-radius: 11px; color: #704d3d; background: #fff7f2; }
.day-editor-summary strong, .day-editor-summary span { display: block; }
.day-editor-summary strong { font-size: 12px; }
.day-editor-summary span { margin-top: 4px; color: #8a6a5d; font-size: 9px; line-height: 1.45; }
.day-event-list { display: grid; gap: 8px; }
.day-event-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf9; }
.day-event-card strong, .day-event-card span { display: block; }
.day-event-card strong { font-size: 11px; }
.day-event-card span { margin-top: 4px; color: #858585; font-size: 8px; line-height: 1.45; }
.day-event-card .secondary-button { min-height: 30px; padding: 0 10px; font-size: 8px; }
.phone-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .75fr); gap: 15px; margin-bottom: 15px; }
.dialer-panel, .voice-setup-panel, .call-recordings-panel, .voicemail-panel, .phone-activity-panel { padding: 20px; }
.dialer-panel .connection-status { position: static; white-space: nowrap; }
.dialer-card { display: grid; gap: 11px; }
.dialer-label { display: grid; gap: 7px; color: #5d5d5d; font-size: 10px; font-weight: 700; }
.dialer-label input, .dialer-label select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dededc; border-radius: 9px; outline: 0; color: var(--ink); background: white; font-size: 12px; }
.dialer-label input:focus, .dialer-label select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,100,31,.1); }
.dial-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dial-pad button {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid #e3e3e1;
  border-radius: 12px;
  color: var(--charcoal-dark);
  background: #fafaf9;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  transition: .18s ease;
}
.dial-pad button:hover { border-color: #ffd6c3; color: var(--brand-dark); background: #fff8f4; transform: translateY(-1px); }
.dial-pad span { margin-top: -5px; color: #999; font-size: 7px; letter-spacing: 1px; }
.phone-action-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.phone-action-row button { justify-content: center; min-height: 40px; }
.voice-number-card { margin-bottom: 14px; padding: 17px; border: 1px solid #ffd6c3; border-radius: 13px; background: #fff8f4; }
.voice-number-card span, .voice-number-card strong, .voice-number-card p { display: block; }
.voice-number-card span { color: #8a6a5d; font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.voice-number-card strong { margin-top: 7px; color: var(--brand-dark); font-family: Georgia, serif; font-size: 24px; font-weight: 550; }
.voice-number-card p { margin: 7px 0 0; color: #795644; font-size: 9px; line-height: 1.45; }
.voice-feature-list { margin-bottom: 15px; }
.voice-setup-panel .primary-button { width: 100%; justify-content: center; }
.phone-recording-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 15px; }
.call-record-list, .voicemail-list { display: grid; gap: 9px; }
.call-record-card, .voicemail-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafaf9;
}
.call-record-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 800; }
.call-record-main strong, .call-record-main span, .call-record-main small, .call-record-main p { display: block; }
.call-record-main strong { color: var(--ink); font-size: 11px; }
.call-record-main span { margin-top: 4px; color: #858585; font-size: 8px; line-height: 1.45; }
.call-record-main p { margin: 7px 0 0; color: #656565; font-size: 9px; line-height: 1.45; }
.call-record-main small { margin-top: 6px; color: #969696; font-size: 8px; }
.call-status { padding: 4px 7px; border-radius: 7px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.call-status.new { color: var(--brand-dark); background: var(--brand-soft); }
.profile-editor { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.profile-photo-stack { display: grid; gap: 9px; justify-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafaf9; }
.profile-photo-preview { display: grid; width: 96px; height: 96px; place-items: center; overflow: hidden; border-radius: 50%; color: white; background: var(--brand); font-size: 24px; font-weight: 800; }
.profile-photo-preview.has-photo { background: #ededeb; }
.profile-upload-button { position: relative; width: 100%; justify-content: center; overflow: hidden; }
.profile-upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.form-field-group { display: grid; gap: 7px; }
.form-field-label { color: #5d5d5d; font-size: 10px; font-weight: 700; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-choice { display: inline-flex; align-items: center; gap: 6px; padding: 8px 9px; border: 1px solid #dfdfdd; border-radius: 8px; color: #666; background: white; font-size: 9px; cursor: pointer; }
.tag-choice i { width: 8px; height: 8px; border-radius: 50%; background: var(--tag-color); }
.tag-choice.selected { border-color: var(--tag-color); color: color-mix(in srgb, var(--tag-color) 75%, #222); background: color-mix(in srgb, var(--tag-color) 10%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tag-color) 12%, transparent); }
.manager-list, .stage-manager-list, .pipeline-type-manager-list { display: grid; gap: 8px; }
.manager-row { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf9; }
.manager-row input[type="color"], .stage-manager-row input[type="color"], .pipeline-type-manager-row input[type="color"], .inline-manager-form input[type="color"] { width: 38px; height: 36px; padding: 3px; border: 1px solid #ddd; border-radius: 7px; background: white; }
.manager-row input:not([type="color"]), .stage-manager-row input:not([type="color"]), .pipeline-type-manager-row input:not([type="color"]), .inline-manager-form input:not([type="color"]) { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #ddd; border-radius: 7px; outline: 0; background: white; font-size: 10px; }
.manager-row > span, .stage-deal-count, .pipeline-type-manager-row > span { color: #8b8b8b; font-size: 8px; white-space: nowrap; }
.mini-action.danger { color: #a43b20; }
.inline-manager-form { display: grid; grid-template-columns: 1fr 42px auto; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.stage-manager-row { display: grid; grid-template-columns: 24px 38px minmax(130px, 1fr) auto minmax(150px, auto) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf9; }
.pipeline-type-manager-row { display: grid; grid-template-columns: 38px minmax(130px, 1fr) auto minmax(150px, auto) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf9; }
.stage-manager-row select, .pipeline-type-manager-row select { height: 36px; padding: 0 8px; border: 1px solid #ddd; border-radius: 7px; color: #666; background: white; font-size: 9px; }
.stage-order { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #777; background: #e9e9e7; font-size: 8px; font-weight: 800; }

.ai-status-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.ai-status-strip div { padding: 16px 18px; border-right: 1px solid var(--line); }
.ai-status-strip div:last-child { border: 0; }
.ai-status-strip span, .ai-status-strip strong { display: block; }
.ai-status-strip span { color: #898989; font-size: 8px; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.ai-status-strip strong { margin-top: 6px; font-family: Georgia, serif; font-size: 16px; font-weight: 500; }
.ai-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr); gap: 15px; }
.ai-composer, .ai-insights, .ai-drafts-panel { padding: 20px; }
.ai-spark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--brand), #ff9b69); font-size: 18px; }
.form-grid textarea { width: 100%; padding: 11px 12px; resize: vertical; border: 1px solid #dededc; border-radius: 8px; outline: 0; color: var(--ink); background: white; font: inherit; font-size: 11px; line-height: 1.5; }
.form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,100,31,.1); }
.ai-context-preview { margin-top: 13px; padding: 11px 12px; border: 1px solid #e5e5e3; border-radius: 9px; color: #6e6e6e; background: #fafaf9; font-size: 9px; line-height: 1.5; }
.ai-context-preview .inline-tags { margin-top: 7px; }
.ai-compose-actions { margin-top: 15px; padding-top: 14px; }
.ai-insights { align-self: start; }
#aiInsightList { display: grid; gap: 8px; }
.ai-insight-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid #e7e7e5; border-radius: 10px; color: inherit; background: #fafaf9; text-align: left; cursor: pointer; }
.ai-insight-card .avatar { width: 32px; height: 32px; font-size: 8px; }
.ai-insight-card strong, .ai-insight-card small { display: block; }
.ai-insight-card strong { font-size: 10px; }
.ai-insight-card small { margin-top: 3px; color: #888; font-size: 8px; line-height: 1.35; }
.ai-insight-card b { color: var(--brand); }
.ai-drafts-panel { margin-top: 15px; }
.ai-draft-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.ai-draft-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.ai-draft-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-draft-head strong, .ai-draft-head small { display: block; }
.ai-draft-head strong { margin-top: 6px; font-family: Georgia, serif; font-size: 15px; font-weight: 550; }
.ai-draft-head small { margin-top: 3px; color: #8b8b8b; font-size: 8px; }
.ai-draft-type { display: inline-block; padding: 3px 6px; border-radius: 6px; color: var(--brand-dark); background: var(--brand-soft); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.ai-draft-card textarea { width: 100%; margin-top: 12px; padding: 11px; resize: vertical; border: 1px solid #dededc; border-radius: 8px; color: #555; background: white; font: inherit; font-size: 9px; line-height: 1.55; }
.ai-draft-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.empty-ai { grid-column: 1 / -1; padding: 42px 20px; color: #888; text-align: center; }
.empty-ai span { display: block; color: var(--brand); font-size: 25px; }
.empty-ai strong { display: block; margin-top: 8px; color: var(--ink); font-family: Georgia, serif; font-size: 17px; }
.empty-ai p { max-width: 430px; margin: 6px auto 0; font-size: 9px; line-height: 1.5; }
.amelia-panel { margin-top: 15px; padding: 20px; }
.amelia-disclosure-note { margin: -4px 0 14px; padding: 10px 12px; border: 1px solid #ffe0d1; border-radius: 9px; color: var(--brand-dark); background: #fff8f4; font-size: 9px; line-height: 1.45; }
.amelia-lead-list { display: grid; gap: 9px; }
.amelia-lead-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.amelia-lead-card strong, .amelia-lead-card span { display: block; }
.amelia-lead-card strong { font-size: 11px; }
.amelia-lead-card span { margin-top: 3px; color: #858585; font-size: 8px; }
.amelia-lead-card p { margin: 6px 0 0; color: #666; font-size: 9px; line-height: 1.4; }
.amelia-lead-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.amelia-lead-actions .secondary-button { min-height: 30px; padding: 0 10px; font-size: 8px; }
.ai-safety-note { margin-top: 15px; }
.ai-nav-count { color: var(--brand-dark); background: var(--brand-soft); }

.property-tabs { display: flex; gap: 25px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.property-tabs button { padding: 0 1px 12px; border: 0; border-bottom: 2px solid transparent; color: #7d7d7d; background: transparent; font-size: 10px; cursor: pointer; }
.property-tabs button.active { border-bottom-color: var(--brand); color: var(--brand-dark); font-weight: 750; }
.property-tabs span { margin-left: 4px; color: #9d9d9d; }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; transition: .2s; }
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.property-image { position: relative; display: flex; height: 170px; align-items: flex-end; padding: 13px; overflow: hidden; background-position: center; background-size: cover; }
.property-image::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent, rgba(35,35,35,.62)); }
.property-image.placeholder-1 { background: linear-gradient(135deg, #747474, #d9c4ba 55%, #f16b2c); }
.property-image.placeholder-2 { background: linear-gradient(135deg, #9b9b9b, #e8e4e0 45%, #d9581c); }
.property-image.placeholder-3 { background: linear-gradient(135deg, #575757, #bcbcbc 46%, #f08a5a); }
.property-image.placeholder-4 { background: linear-gradient(135deg, #8a8a8a, #ded5cf 50%, #ef6b2e); }
.property-image.placeholder-5 { background: linear-gradient(135deg, #5e5e5e, #c8c2be 48%, #f07942); }
.property-image.placeholder-6 { background: linear-gradient(135deg, #999, #e3dedb 45%, #dc591d); }
.property-status { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 8px; border-radius: 7px; color: white; background: rgba(250,100,31,.94); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.property-status.Pending { color: #4e4e4e; background: #ededeb; }
.property-status.Sold { background: #575757; }
.property-price { position: relative; z-index: 2; color: white; font-family: Georgia, serif; font-size: 20px; }
.property-info { padding: 15px; }
.property-info h3 { margin: 0; font-family: Georgia, serif; font-size: 16px; font-weight: 550; }
.property-info > p { margin: 6px 0 12px; color: #858585; font-size: 9px; }
.property-meta { display: flex; gap: 15px; padding-top: 11px; border-top: 1px solid #ededeb; color: #646464; font-size: 9px; }

.task-layout { display: grid; grid-template-columns: 195px 1fr; gap: 16px; }
.task-filters { display: grid; align-content: start; gap: 5px; }
.task-filters button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; color: #696969; background: transparent; font-size: 10px; text-align: left; cursor: pointer; }
.task-filters button.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 750; }
.task-filters b { margin-left: auto; font-size: 9px; }
.task-board { min-height: 550px; padding: 20px; }
.task-board-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.task-board h2 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 550; }
.task-board-head p { margin: 5px 0 0; color: #8c8c8c; font-size: 9px; }
.full-task { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 13px; min-height: 72px; border-bottom: 1px solid #ededeb; }
.full-task.completed .full-task-main { opacity: .55; text-decoration: line-through; }
.full-task-main strong { display: block; font-size: 11px; }
.full-task-main span { display: block; margin-top: 5px; color: #8e8e8e; font-size: 9px; }
.task-due { min-width: 70px; color: #808080; font-size: 9px; text-align: right; }
.priority-pill { min-width: 54px; padding: 5px 7px; border-radius: 7px; color: var(--brand-dark); background: var(--brand-soft); font-size: 8px; font-weight: 700; text-align: center; }
.priority-pill.Medium { color: #5d5d5d; background: #e9e9e7; }
.priority-pill.Low { color: #777; background: #f2f2f0; }
.empty-state { padding: 70px 20px; color: #8a8a8a; font-size: 11px; text-align: center; }

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #666;
  background: white;
  font-size: 10px;
  font-weight: 700;
}

.secure-badge.connected {
  border-color: rgba(250,100,31,.25);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.integration-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.integration-summary div { padding: 17px 20px; border-right: 1px solid var(--line); }
.integration-summary div:last-child { border-right: 0; }
.integration-summary span, .integration-summary strong { display: block; }
.integration-summary span { color: #858585; font-size: 9px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.integration-summary strong { margin-top: 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }

.integration-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 13px; }
.integration-section-head.mls-heading { margin-top: 28px; }
.integration-section-head h2 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 550; }
.integration-section-head p { margin: 5px 0 0; color: #888; font-size: 10px; }

.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.mls-integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.integration-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  min-height: 205px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 3px 15px rgba(45,45,45,.025);
}

.integration-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e2e2e0;
  border-radius: 11px;
  color: var(--charcoal);
  background: #f7f7f5;
  font-size: 17px;
  font-weight: 800;
}

.integration-logo img,
.marketplace-brand img,
.idx-profile-icon img {
  display: block;
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.integration-logo > span,
.marketplace-brand > span,
.idx-profile-icon > span { display: none; }
.google-logo { color: #4285f4; background: #f8fbff; }
.microsoft-logo { color: #1769aa; background: #f2f7fb; }
.mail-logo { color: var(--brand-dark); background: var(--brand-soft); }
.mail-logo svg, .import-logo svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sms-logo { color: white; background: #fff; font-size: 9px; }
.mls-logo { color: white; background: #fff; font-size: 10px; }
.import-logo { color: var(--charcoal-dark); background: #eeeeec; font-size: 10px; }
.integration-card-copy { min-width: 0; }
.integration-card-copy h3 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 16px; font-weight: 550; }
.integration-card-copy p { margin: 6px 0 0; color: #818181; font-size: 10px; line-height: 1.5; }
.connection-status {
  position: absolute;
  left: 19px;
  bottom: 62px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #777;
  background: #eeeeec;
  font-size: 8px;
  font-weight: 750;
}
.connection-status.connected { color: var(--brand-dark); background: var(--brand-soft); }
.connection-status.ready { color: #555; background: #eeeeec; }
.disconnect-button {
  position: absolute;
  top: 17px;
  right: 17px;
  display: none;
  padding: 4px 6px;
  border: 0;
  color: #888;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.disconnect-button:hover { color: var(--brand-dark); }
.integration-action { position: absolute; right: 19px; bottom: 16px; left: 19px; }
.mls-card { min-height: 270px; }
.integration-features { margin: 13px 0 0; padding: 0; list-style: none; color: #666; font-size: 9px; }
.integration-features li { margin-top: 7px; }
.integration-features li::before { margin-right: 7px; color: var(--brand); content: "✓"; font-weight: 800; }

.integration-activity-panel { margin-top: 18px; }
.integration-activity { padding: 0 21px 17px; }
.integration-event { display: flex; min-height: 55px; align-items: center; gap: 11px; border-top: 1px solid #ededeb; }
.integration-event-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; }
.integration-event p { margin: 0; font-size: 10px; }
.integration-event span { display: block; margin-top: 3px; color: #929292; font-size: 8px; }

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e5e3;
  border-radius: 11px;
  color: #676767;
  background: #f7f7f5;
}
.security-note > span { color: var(--brand); font-size: 17px; }
.security-note p { margin: 0; font-size: 9px; line-height: 1.55; }

.oauth-fields, .imap-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.imap-fields { display: none; }
.checkbox-label { display: flex !important; grid-template-columns: none; align-items: center; gap: 9px !important; min-height: 28px; font-weight: 550 !important; }
.checkbox-label input { width: 16px !important; height: 16px !important; accent-color: var(--brand); }
.provider-help { margin-top: 17px; padding: 11px 12px; border-radius: 9px; color: #6f6f6f; background: #f5f5f3; font-size: 9px; line-height: 1.5; }

.upload-zone {
  display: grid;
  min-height: 210px;
  padding: 24px;
  place-items: center;
  border: 1.5px dashed #cfcfcb;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}
.upload-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 18px; }
.upload-zone strong { margin-top: 10px; font-family: Georgia, serif; font-size: 16px; }
.upload-zone p { max-width: 330px; margin: 4px 0 12px; color: #858585; font-size: 9px; line-height: 1.5; }
.upload-zone input { max-width: 100%; font-size: 10px; }

.automation-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.automation-summary div { padding: 17px 20px; border-right: 1px solid var(--line); }
.automation-summary div:last-child { border-right: 0; }
.automation-summary span, .automation-summary strong { display: block; }
.automation-summary span { color: #858585; font-size: 9px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.automation-summary strong { margin-top: 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }

.automation-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.automation-tabs button {
  padding: 0 1px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #777;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.automation-tabs button.active { border-bottom-color: var(--brand); color: var(--charcoal-dark); font-weight: 750; }
.automation-tabs span { margin-left: 5px; color: var(--brand-dark); }
.automation-tab-panel { display: none; }
.automation-tab-panel.active { display: block; animation: fadeIn .2s ease; }
.automation-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.automation-panel-head h2 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 550; }
.automation-panel-head p { margin: 5px 0 0; color: #888; font-size: 10px; }

.workflow-list { display: grid; gap: 11px; }
.workflow-card {
  display: grid;
  grid-template-columns: auto minmax(180px, 1.2fr) minmax(250px, 1.6fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.workflow-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 16px; }
.workflow-name strong { display: block; font-family: Georgia, serif; font-size: 15px; font-weight: 550; }
.workflow-name span { display: block; margin-top: 4px; color: #888; font-size: 9px; }
.workflow-path { display: flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; }
.workflow-node { padding: 6px 8px; border: 1px solid #e5e5e3; border-radius: 7px; color: #666; background: #f8f8f6; font-size: 8px; white-space: nowrap; }
.workflow-arrow { color: var(--brand); font-size: 11px; }
.workflow-actions { display: flex; align-items: center; gap: 7px; }
.automation-toggle {
  position: relative;
  width: 34px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #d7d7d4;
  cursor: pointer;
}
.automation-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.automation-toggle.active { background: var(--brand); }
.automation-toggle.active::after { transform: translateX(15px); }
.mini-action { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: #666; background: white; font-size: 8px; font-weight: 700; cursor: pointer; }
.mini-action:hover { border-color: #f0a27f; color: var(--brand-dark); }
.empty-automation {
  padding: 55px 20px;
  border: 1px dashed #d5d5d2;
  border-radius: 13px;
  color: #858585;
  background: #fafafa;
  text-align: center;
}
.empty-automation strong { display: block; color: var(--charcoal-dark); font-family: Georgia, serif; font-size: 17px; }
.empty-automation p { margin: 6px auto 16px; font-size: 10px; }

.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.automation-template {
  position: relative;
  min-height: 220px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.template-top { display: flex; align-items: flex-start; gap: 12px; }
.template-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 15px; }
.template-copy h3 { margin: 0; font-family: Georgia, serif; font-size: 16px; font-weight: 550; }
.template-copy p { margin: 5px 0 0; color: #858585; font-size: 9px; line-height: 1.5; }
.template-meta { display: flex; gap: 8px; margin-top: 13px; }
.template-meta span { padding: 4px 7px; border-radius: 7px; color: #666; background: #eeeeec; font-size: 8px; font-weight: 700; }
.template-steps { display: flex; align-items: center; gap: 6px; margin-top: 14px; overflow: hidden; }
.template-step { padding: 6px 7px; border: 1px solid #e8e8e5; border-radius: 7px; color: #686868; background: #fafafa; font-size: 8px; white-space: nowrap; }
.template-actions { position: absolute; right: 19px; bottom: 17px; left: 19px; display: flex; gap: 8px; }
.template-actions button { flex: 1; }

.queue-filter-row { display: flex; gap: 6px; margin-bottom: 12px; }
.automation-queue { overflow: hidden; }
.queue-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(170px, 1fr) 90px 80px auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 0 17px;
  border-bottom: 1px solid #ededeb;
}
.queue-remove { padding: 5px 7px; border: 1px solid #ead8d2; border-radius: 7px; color: #a43b20; background: #fff8f5; font-size: 7px; font-weight: 750; cursor: pointer; }
.queue-row:last-child { border-bottom: 0; }
.queue-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; }
.queue-main strong, .queue-main span { display: block; }
.queue-main strong { font-size: 10px; }
.queue-main span { margin-top: 4px; color: #888; font-size: 8px; }
.queue-message { overflow: hidden; color: #666; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.queue-time { color: #858585; font-size: 8px; }
.queue-status { padding: 5px 7px; border-radius: 7px; color: #656565; background: #eeeeec; font-size: 8px; font-weight: 750; text-align: center; }
.queue-status.ready { color: var(--brand-dark); background: var(--brand-soft); }
.queue-status.completed { color: #555; background: #e8e8e5; }

.automation-delivery-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
  padding: 13px 15px;
  border: 1px solid #e5e5e3;
  border-radius: 11px;
  color: #676767;
  background: #f7f7f5;
}
.automation-delivery-note > span { color: var(--brand); font-size: 17px; }
.automation-delivery-note p { flex: 1; margin: 0; font-size: 9px; line-height: 1.5; }

.automation-builder-modal { width: min(760px, 100%); }
.builder-intro { display: flex; align-items: flex-start; gap: 11px; margin: 23px 0 12px; }
.builder-intro:first-of-type { margin-top: 0; }
.builder-number { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 10px; font-weight: 800; }
.builder-intro h3 { margin: 1px 0 0; font-family: Georgia, serif; font-size: 15px; font-weight: 550; }
.builder-intro p { margin: 4px 0 0; color: #888; font-size: 9px; }
.builder-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #686868;
  background: #fafafa;
  font-size: 9px;
}
.builder-rule span { font-weight: 750; white-space: nowrap; }
.builder-rule select {
  min-width: 150px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #dededc;
  border-radius: 8px;
  color: var(--charcoal-dark);
  background: white;
  font-size: 10px;
}
.automation-step-list { display: grid; gap: 9px; }
.automation-step-editor {
  display: grid;
  grid-template-columns: 26px 115px 90px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.step-order { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #666; background: #eeeeec; font-size: 9px; font-weight: 750; }
.automation-step-editor select, .automation-step-editor input {
  width: 100%;
  height: 35px;
  padding: 0 8px;
  border: 1px solid #dededc;
  border-radius: 7px;
  outline: 0;
  font-size: 9px;
}
.automation-step-editor input:focus, .automation-step-editor select:focus { border-color: var(--brand); }
.remove-step { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #888; background: #f2f2f0; cursor: pointer; }
.add-step-button { width: 100%; margin-top: 9px; padding: 10px; border: 1px dashed #d0d0cc; border-radius: 9px; color: var(--brand-dark); background: #fffaf7; font-size: 9px; font-weight: 750; cursor: pointer; }
.builder-settings { display: grid; gap: 5px; margin-top: 18px; padding: 12px; border-radius: 9px; background: #f7f7f5; }

.marketplace-heading { margin-top: 28px; }
.integration-marketplace {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
}
.marketplace-card {
  position: relative;
  min-height: 190px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.marketplace-brand {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e6e6e3;
  border-radius: 10px;
  color: white;
  background: white;
  font-size: 10px;
  font-weight: 850;
}
.marketplace-brand > span,
.idx-profile-icon > span {
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  color: var(--fallback-text);
  background: var(--fallback-color);
}
.marketplace-card h3 { margin: 12px 0 0; font-family: Georgia, serif; font-size: 14px; font-weight: 550; }
.marketplace-card p { margin: 5px 0 0; color: #858585; font-size: 8px; line-height: 1.45; }
.marketplace-status { position: absolute; left: 15px; bottom: 50px; padding: 4px 6px; border-radius: 7px; color: #777; background: #eeeeec; font-size: 7px; font-weight: 750; }
.marketplace-status.connected { color: var(--brand-dark); background: var(--brand-soft); }
.marketplace-card .mini-action { position: absolute; right: 15px; bottom: 14px; left: 15px; }
.marketplace-disconnect { position: absolute; top: 14px; right: 12px; display: none; border: 0; color: #888; background: transparent; font-size: 7px; font-weight: 700; cursor: pointer; }

.florida-idx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 13px;
}
.idx-profile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.idx-profile-top { display: flex; align-items: center; gap: 9px; }
.idx-profile-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid #e7e7e4; border-radius: 8px; color: white; background: white; font-size: 8px; font-weight: 850; }
.idx-profile h3 { margin: 0; font-family: Georgia, serif; font-size: 13px; font-weight: 550; }
.idx-profile > p { margin: 8px 0 0; color: #858585; font-size: 8px; line-height: 1.45; }
.idx-methods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.idx-methods span { padding: 3px 5px; border-radius: 6px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 700; }
.idx-profile button { width: 100%; margin-top: 11px; }
.idx-connection-list { display: grid; gap: 8px; margin-bottom: 14px; }
.idx-connection {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf7;
}
.idx-connection strong, .idx-connection span { display: block; }
.idx-connection strong { font-size: 10px; }
.idx-connection span { margin-top: 3px; color: #858585; font-size: 8px; }
.idx-request-status { padding: 5px 7px; border-radius: 7px; color: var(--brand-dark); background: var(--brand-soft); font-size: 8px; font-weight: 750; }
.idx-guidance { margin-top: 16px; padding: 13px; border: 1px solid #e5e5e3; border-radius: 9px; color: #656565; background: #f7f7f5; font-size: 9px; line-height: 1.55; }

.team-context-bar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.team-context-bar > div { display: grid; gap: 6px; }
.team-context-bar span { color: #858585; font-size: 8px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.team-context-bar select { min-width: 190px; height: 36px; padding: 0 9px; border: 1px solid #dededc; border-radius: 8px; color: var(--charcoal-dark); background: white; font-size: 10px; }
.team-context-bar p { margin: 0; color: #777; font-size: 9px; text-align: right; }
.team-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.team-summary div { padding: 17px 20px; border-right: 1px solid var(--line); }
.team-summary div:last-child { border-right: 0; }
.team-summary span, .team-summary strong { display: block; }
.team-summary span { color: #858585; font-size: 9px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.team-summary strong { margin-top: 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.team-layout { display: grid; grid-template-columns: 1fr 310px; gap: 15px; }
.team-member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.team-member-card {
  position: relative;
  min-height: 175px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.member-head { display: flex; align-items: center; gap: 10px; }
.member-head .avatar { width: 42px; height: 42px; }
.member-head strong, .member-head span { display: block; }
.member-head strong { font-family: Georgia, serif; font-size: 14px; font-weight: 550; }
.member-head span { margin-top: 3px; color: #858585; font-size: 8px; }
.member-role { position: absolute; top: 15px; right: 14px; padding: 4px 6px; border-radius: 7px; color: #666; background: #eeeeec; font-size: 7px; font-weight: 750; }
.member-invite-status {
  display: inline-flex;
  width: max-content;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 800;
}
.member-invite-status.pending { color: #755027; background: #fff3df; }
.member-invite-status.reset-sent { color: #24537a; background: #e7f2ff; }
.member-invite-status.disabled { color: #777; background: #eeeeec; }
.member-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 15px; }
.member-stats div { padding: 8px; border-radius: 8px; background: #f7f7f5; }
.member-stats span, .member-stats strong { display: block; }
.member-stats span { color: #888; font-size: 7px; text-transform: uppercase; }
.member-stats strong { margin-top: 3px; font-size: 11px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.member-actions button { flex: 1 1 calc(50% - 7px); min-width: 96px; }
.permission-panel { align-self: start; }
.role-access-list { padding: 0 18px 18px; }
.role-access-list > div { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid #ededeb; }
.role-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: white; background: var(--charcoal); font-size: 9px; font-weight: 800; }
.role-icon.broker { background: var(--brand); }
.role-icon.manager { background: #777; }
.role-access-list p { margin: 0; color: #777; font-size: 8px; line-height: 1.45; }
.role-access-list strong { display: block; margin-bottom: 3px; color: var(--charcoal-dark); font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(35,35,35,.54); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: grid; animation: fadeIn .18s ease; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 25px; border-radius: 17px; background: white; box-shadow: 0 25px 70px rgba(35,35,35,.22); }
.small-modal { width: min(470px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.modal-head h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #7d7d7d; background: #f2f2f0; font-size: 20px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid label { display: grid; gap: 7px; color: #5d5d5d; font-size: 10px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dededc; border-radius: 8px; outline: 0; color: var(--ink); background: white; font-size: 11px; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250,100,31,.1); }
.account-help-note { margin-bottom: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-actions.split-actions { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; }

.toast { position: fixed; z-index: 200; right: 25px; bottom: 108px; display: flex; min-width: 300px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e5ded9; border-radius: 12px; background: white; box-shadow: 0 14px 40px rgba(45,45,45,.16); opacity: 0; pointer-events: none; transform: translateY(16px); transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 12px; }
.toast strong { display: block; font-size: 11px; }
.toast p { margin: 3px 0 0; color: #7d7d7d; font-size: 9px; }

@media (max-width: 1180px) {
  .video-dashboard { width: min(720px, 68vw); opacity: .86; }
  .website-platform, .website-login { grid-template-columns: 1fr; }
  .signin-panel { max-width: 520px; }
  .sidebar { gap: 10px; min-height: 70px; padding-inline: 22px; }
  .nav-search { flex-basis: 180px; }
  .main { padding-top: 0; padding-bottom: 92px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: 1fr; }
  .workflow-card { grid-template-columns: auto 1fr auto; }
  .workflow-path { grid-column: 2 / -1; }
  .integration-marketplace { grid-template-columns: repeat(3, 1fr); }
  .florida-idx-grid { grid-template-columns: repeat(2, 1fr); }
  .team-layout { grid-template-columns: 1fr; }
  .archive-grid, .admin-layout, .calendar-layout, .commission-layout, .contact-detail-grid, .contact-detail-layout, .lead-workspace-grid, .marketing-layout, .marketing-campaign-card, .phone-layout, .phone-recording-grid { grid-template-columns: 1fr; }
  .contact-record-header { top: 220px; }
  .calendar-provider-grid { grid-template-columns: repeat(2, 1fr); }
  .marketing-strategy-strip, .strategy-metrics { grid-template-columns: repeat(2, 1fr); }
  .hub-grid.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { min-height: 66px; padding: 10px 14px; }
  .site-nav a { padding-inline: 9px; font-size: 9px; }
  .site-hero { min-height: 900px; align-items: start; padding: 98px 18px 42px; }
  .site-hero-copy { max-width: 620px; }
  .video-dashboard { top: 440px; right: 18px; left: 18px; width: auto; min-height: 370px; transform: none; }
  .video-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-progress { right: 18px; bottom: 22px; width: calc(100% - 36px); }
  .website-proof { grid-template-columns: 1fr; }
  .sidebar { min-height: 70px; padding: 9px 12px; }
  .brand-text em { display: none; }
  .nav { overflow-x: auto; }
  .nav-item { min-height: 42px; padding: 0 8px; font-size: 11px; }
  .nav-icon { font-size: 14px; }
  .agent-card { display: flex; }
  .nav-search { flex-basis: 180px; }
  .main { padding-top: 0; padding-bottom: 92px; }
  .mobile-menu { display: none; }
  .content { padding: 24px 18px; }
  .search-wrap { width: min(180px, 24vw); }
  .contact-workspace-grid { grid-template-columns: 1fr; }
  .contact-right-rail { position: static; }
  .contact-detail-header { grid-template-columns: 1fr; align-items: stretch; }
  .contact-record-header { position: static; }
  .contact-detail-header > .heading-actions { justify-content: flex-start; }
  .settings-tabs { overflow-x: auto; }
  .settings-tabs button { min-width: 120px; }
  .task-layout { grid-template-columns: 1fr; }
  .task-filters { display: flex; overflow-x: auto; }
  .task-filters button { min-width: max-content; }
  .mls-integration-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
  .team-member-grid { grid-template-columns: 1fr; }
  .ai-workspace { grid-template-columns: 1fr; }
  .hub-grid.two-up, .hub-grid.three-up { grid-template-columns: 1fr; }
  .stage-manager-row { grid-template-columns: 24px 38px 1fr auto; }
  .stage-manager-row select { grid-column: 3; }
  .stage-manager-row button { grid-column: 4; grid-row: 2; }
  .pipeline-type-manager-row { grid-template-columns: 38px 1fr auto; }
  .pipeline-type-manager-row select { grid-column: 2; }
  .pipeline-type-manager-row button { grid-column: 3; grid-row: 2; }
  .amelia-lead-card { grid-template-columns: auto 1fr; align-items: flex-start; }
  .amelia-lead-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 620px) {
  .signin-screen { padding: 0; align-items: start; }
  .site-header { position: absolute; }
  .site-brand strong { font-size: 16px; }
  .site-brand em { display: none; }
  .site-nav a:not(:last-child) { display: none; }
  .site-hero { min-height: 940px; }
  .site-hero-copy h1 { font-size: 54px; }
  .site-hero-actions { align-items: stretch; flex-direction: column; }
  .site-hero-actions .primary-button, .site-hero-actions .secondary-button { justify-content: center; }
  .video-dashboard { top: 500px; padding: 12px; min-height: 360px; }
  .video-topline strong { font-size: 18px; }
  .video-grid { gap: 8px; }
  .video-panel { min-height: 116px; padding: 12px; }
  .video-panel strong { font-size: 16px; }
  .video-panel p { font-size: 8px; }
  .video-bars { height: 40px; }
  .website-proof, .website-platform, .website-login { padding: 30px 18px; }
  .platform-list { grid-template-columns: 1fr; }
  .signin-metrics { grid-template-columns: 1fr; }
  .signin-title-lockup { align-items: flex-start; flex-direction: column; gap: 10px; }
  .signin-brand-panel h1 { font-size: 38px; }
  .signin-brand-panel p { font-size: 13px; }
  .signin-panel { padding: 20px; }
  .signin-sso-grid { grid-template-columns: 1fr; }
  .search-wrap { width: auto; flex: 1; }
  .search-wrap kbd { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .metric-grid, .property-grid { grid-template-columns: 1fr; }
  .integration-summary { grid-template-columns: 1fr; }
  .integration-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .integration-summary div:last-child { border-bottom: 0; }
  .pipeline-summary { grid-template-columns: repeat(2, 1fr); }
  .pipeline-summary div:nth-child(2) { border-right: 0; }
  .pipeline-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	  .archive-summary, .admin-summary, .calendar-summary, .commission-summary, .interaction-summary, .lead-summary, .marketing-summary, .phone-summary, .settings-summary { grid-template-columns: repeat(2, 1fr); }
	  .archive-summary div:nth-child(2), .admin-summary div:nth-child(2), .calendar-summary div:nth-child(2), .commission-summary div:nth-child(2), .interaction-summary div:nth-child(2), .lead-summary div:nth-child(2), .marketing-summary div:nth-child(2), .phone-summary div:nth-child(2), .settings-summary div:nth-child(2) { border-right: 0; }
	  .archive-summary div:nth-child(-n+2), .admin-summary div:nth-child(-n+2), .calendar-summary div:nth-child(-n+2), .commission-summary div:nth-child(-n+2), .interaction-summary div:nth-child(-n+2), .lead-summary div:nth-child(-n+2), .marketing-summary div:nth-child(-n+2), .phone-summary div:nth-child(-n+2), .settings-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	  .archive-card { grid-template-columns: auto 1fr; align-items: flex-start; }
	  .archive-actions { grid-column: 1 / -1; justify-content: flex-start; }
	  .phone-action-row { grid-template-columns: 1fr; }
	  .call-record-card, .voicemail-card { grid-template-columns: auto 1fr; }
	  .call-status { grid-column: 2; width: max-content; }
	  .admin-toggle-grid { grid-template-columns: 1fr; }
  .calendar-provider-grid, .calendar-event-card { grid-template-columns: 1fr; }
  .calendar-weekdays, .calendar-month-grid { min-width: 650px; }
  .calendar-panel { overflow-x: auto; }
  .profile-editor, .day-event-card { grid-template-columns: 1fr; }
  .marketing-strategy-strip, .marketing-platform-choices, .campaign-stats, .strategy-metrics { grid-template-columns: 1fr; }
  .modal-actions.split-actions { grid-template-columns: 1fr 1fr; }
  .modal-actions.split-actions span { display: none; }
  .pipeline-overview { grid-template-columns: repeat(2, 1fr); }
  .pipeline-toolbar { align-items: stretch; flex-direction: column; }
  .tag-filter-list { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .tag-filter { min-width: max-content; }
  .chart-summary { gap: 12px; }
  .chart-summary > .trend { margin-left: 0; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .filter-search { width: 100%; }
  .filter-buttons { overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .commission-command-row { grid-template-columns: 1fr; }
  .commission-detail-head, .commission-doc-row { grid-template-columns: 1fr; }
  .commission-file-tabs { overflow-x: auto; }
  .commission-file-tabs button { min-width: 110px; }
  .commission-detail-tabs { overflow-x: auto; }
  .commission-detail-tabs button { min-width: 110px; }
  .commission-step-grid { grid-template-columns: repeat(2, 1fr); }
  .commission-info-grid { grid-template-columns: repeat(2, 1fr); }
  .commission-edit-grid, .commission-finance-grid { grid-template-columns: 1fr; }
  .commission-edit-fields { grid-template-columns: 1fr; }
  .commission-edit-field.full, .commission-calculated-field.full { grid-column: auto; }
  .commission-documents-workspace { grid-template-columns: 1fr; }
  .commission-document-review { position: static; }
  .commission-review-canvas, .commission-review-canvas img, .commission-review-canvas iframe { min-height: 320px; }
  .commission-doc-toolbar { align-items: flex-end; flex-direction: column; }
  .commission-approval-summary, .commission-timeline > div { grid-template-columns: 1fr; }
  .commission-doc-row .secondary-button { width: 100%; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .contact-comm-tabs, .contact-comm-panel { margin-inline: 14px; padding-inline: 0; }
  .comm-account-grid { grid-template-columns: 1fr; }
  .oauth-fields, .imap-fields { grid-template-columns: 1fr; }
  .automation-summary { grid-template-columns: repeat(2, 1fr); }
  .automation-summary div:nth-child(2) { border-right: 0; }
  .automation-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .automation-panel-head { align-items: stretch; flex-direction: column; }
  .automation-tabs { gap: 16px; overflow-x: auto; }
  .automation-tabs button { min-width: max-content; }
  .workflow-card { grid-template-columns: auto 1fr; }
  .workflow-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .workflow-path { grid-column: 1 / -1; }
  .queue-row { grid-template-columns: auto 1fr auto; padding: 10px 13px; }
  .queue-message { grid-column: 2 / -1; }
  .queue-time { display: none; }
  .automation-delivery-note { align-items: flex-start; flex-wrap: wrap; }
  .automation-step-editor { grid-template-columns: 26px 1fr auto; }
  .automation-step-editor .step-delay { grid-column: 2; }
  .automation-step-editor .step-content { grid-column: 2; }
  .builder-rule { align-items: stretch; flex-direction: column; }
  .builder-rule select { width: 100%; }
  .integration-marketplace { grid-template-columns: repeat(2, 1fr); }
  .florida-idx-grid { grid-template-columns: 1fr; }
  .team-context-bar { grid-template-columns: 1fr; align-items: stretch; }
  .team-context-bar select { width: 100%; }
  .team-context-bar p { text-align: left; }
  .team-summary { grid-template-columns: repeat(2, 1fr); }
  .team-summary div:nth-child(2) { border-right: 0; }
  .team-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ai-status-strip { grid-template-columns: repeat(2, 1fr); }
  .ai-status-strip div { border-bottom: 1px solid var(--line); }
  .ai-status-strip div:nth-child(even) { border-right: 0; }
  .ai-status-strip div:nth-last-child(-n+2) { border-bottom: 0; }
  .ai-draft-list { grid-template-columns: 1fr; }
  .manager-row { grid-template-columns: 38px 1fr auto; }
  .manager-row > span { display: none; }
  .inline-manager-form { grid-template-columns: 1fr 42px; }
  .inline-manager-form button { grid-column: 1 / -1; }
  .stage-manager-row { grid-template-columns: 24px 38px 1fr auto; }
  .stage-deal-count { display: none; }
  .stage-manager-row select { grid-column: 2 / 4; }
  .pipeline-type-manager-row { grid-template-columns: 38px 1fr auto; }
  .pipeline-type-manager-row > span { display: none; }
  .pipeline-type-manager-row select { grid-column: 1 / 3; }
  .idx-connection { grid-template-columns: auto 1fr; }
  .idx-connection .idx-request-status, .idx-connection button { grid-column: 2; }
  .property-tabs { gap: 15px; overflow-x: auto; }
  .full-task { grid-template-columns: auto 1fr auto; }
  .task-due { display: none; }
  .toast { right: 15px; bottom: 15px; left: 15px; min-width: 0; }
}
