/* Pale versions of the portal's olive ink, cream surfaces and green actions. */
.portal-boot,
.lead-workspace-theme,
.leads-page {
  --loading-ink: #e0e4db;
  --loading-secondary: #e9ebe5;
  --loading-line: #d7dfd1;
  --loading-action: #e7f3ec;
  --loading-action-line: #c8e2d3;
  --loading-danger: #f8edeb;
}
.portal-boot {
  display: none;
  box-sizing: border-box;
  width: 100%;
  padding: 0 max(2vw, 12px) 24px;
}
.portal-boot * {
  box-sizing: border-box;
}
html[data-loading-route] .app-boot-skeleton > .public-page-skeleton {
  display: none;
}
html[data-loading-route='leads'] .app-boot-skeleton > [data-loading-view='leads'],
html[data-loading-route='details'] .app-boot-skeleton > [data-loading-view='details'],
html[data-loading-route='workflow'] .app-boot-skeleton > [data-loading-view='workflow'],
html[data-loading-route='email'] .app-boot-skeleton > [data-loading-view='email'],
html[data-loading-route='whatsapp'] .app-boot-skeleton > [data-loading-view='whatsapp'],
.portal-route-loading > .portal-boot {
  display: block;
}
.portal-boot__header {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  height: 104px;
  left: 50%;
  margin: 0 0 8px;
  max-width: none;
  padding: 0.95rem clamp(12px, 2.5vw, 24px);
  position: relative;
  transform: translateX(-50%);
  width: min(1600px, 94vw);
}
.portal-boot__brand {
  align-items: center;
  display: inline-flex;
  gap: 0.9rem;
  justify-self: start;
  min-width: 0;
  padding: 0.78rem 1.1rem;
  width: max-content;
}
.portal-boot__brand-mark {
  display: grid;
  flex: 0 0 auto;
  height: clamp(2.4rem, 3.5vw, 3rem);
  place-items: center;
  width: clamp(2.4rem, 3.5vw, 3rem);
}
.portal-boot .portal-boot__brand-mark i {
  background: #eee6dc;
  border-radius: 45% 25% 40% 25%;
  height: 82%;
  width: 42%;
}
.portal-boot__brand-words {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: clamp(1.14rem, 1.78vw, 1.36rem);
  gap: 0.36rem;
}
.portal-boot__brand-words i {
  height: 0.95em;
  width: 2.85em;
}
.portal-boot__brand-words i:last-child {
  background: #e4e8e0;
  height: 0.92em;
  width: 2.75em;
}
.portal-boot__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  width: min(46vw, 588px);
  padding: 12px 24px;
  background: #f7f5ef;
  border: 1px solid #fffdf9;
  border-radius: 40px;
}
.portal-boot__nav i {
  width: 18%;
  height: 20px;
}
.portal-boot__nav i:nth-child(3) {
  background: #f3e8ec;
}
.portal-boot__account {
  justify-self: end;
  height: 56px;
  width: 56px;
  border-radius: 50% !important;
}
.portal-boot__panel {
  max-width: 1360px;
  margin: auto;
  padding: 16px;
  background: #fcfaf6;
  border: 1px solid #e5dfd4;
  border-radius: 12px;
}
.portal-boot__tabs {
  display: flex;
  gap: 24px;
  margin: 6px 8px 28px;
}
.portal-boot__tabs i {
  width: 64px;
  height: 16px;
}
.portal-boot__workflow {
  padding: 12px 24px 24px;
}
.portal-boot__rail {
  background: #fff;
  border: 1px solid #d7dfda;
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  justify-content: space-around;
  position: relative;
  margin-bottom: 16px;
}
.portal-boot__rail::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #d8dfdb;
}
.portal-boot__stage {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 18%;
  position: relative;
}
.portal-boot__stage i:first-child {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 2px;
}
.portal-boot__stage i:not(:first-child) {
  width: 50%;
  height: 12px;
}
.portal-boot__work {
  background: #fff;
  border: 1px solid #d7dfda;
  border-radius: 14px;
  padding: 12px;
}
.portal-boot__row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4e9e6;
  border-radius: 11px;
  min-height: 70px;
  padding: 12px;
  margin-bottom: 8px;
}
.portal-boot__row i:first-child {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.portal-boot__row i:nth-child(2) {
  width: 25%;
  height: 16px;
  margin-right: auto;
}
.portal-boot__row i:last-child {
  width: 184px;
  height: 44px;
  border-radius: 10px;
}
.portal-boot__footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d7dfda;
  padding: 24px 16px 12px;
}
.portal-boot__footer i {
  width: 20%;
  height: 44px;
}
.portal-boot i {
  background: var(--loading-ink);
  border-radius: 5px;
  display: block;
  animation: portal-placeholder-pulse 1.4s ease-in-out infinite;
}
.portal-boot i.portal-boot__action {
  background: var(--loading-action);
  border: 1px solid var(--loading-action-line);
}
.portal-boot i.portal-boot__danger {
  background: var(--loading-danger);
  border: 1px solid #edcfcb;
}
.portal-boot__details {
  border: 1px solid #e5dfd4;
  border-radius: 8px;
  overflow: hidden;
}
.portal-boot__profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5dfd4;
}
.portal-boot__profile i:first-child {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.portal-boot__profile i:nth-child(2) {
  width: 40%;
  height: 16px;
}
.portal-boot__profile i:last-child {
  width: 104px;
  height: 38px;
}
.portal-boot__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portal-boot__fields > div {
  display: grid;
  gap: 16px;
  padding: 16px 20px;
  min-height: 144px;
  border-bottom: 1px solid #e5dfd4;
}
.portal-boot__fields > div:nth-child(odd) {
  border-right: 1px solid #e5dfd4;
}
.portal-boot__fields > div:last-child {
  grid-column: 1 / -1;
  border: 0;
}
.portal-boot__fields i {
  width: 70%;
  height: 15px;
}
.portal-boot__fields i:first-child {
  width: 40%;
  height: 10px;
}
.portal-boot__fields i:last-child {
  width: 55%;
  background: var(--loading-secondary);
}
.portal-boot__messages {
  display: flex;
  flex-direction: column;
  background: #f6f5f0;
  min-height: 280px;
  height: clamp(280px, calc(100dvh - 240px), 700px);
  margin: 0 -16px -16px;
}
.portal-boot__thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  overflow: hidden;
}
.portal-boot__thread i {
  flex-shrink: 0;
}
.portal-boot__thread i:first-child {
  align-self: center;
  width: 80px;
  height: 20px;
  border-radius: 20px;
}
.portal-boot__thread i:nth-child(2) {
  align-self: flex-end;
  width: min(70%, 720px);
  height: clamp(56px, 10vh, 84px);
  border-radius: 18px 18px 4px;
  background: var(--loading-secondary);
}
.portal-boot__thread i:nth-child(3) {
  width: min(55%, 360px);
  height: clamp(48px, 8vh, 64px);
  border-radius: 18px 18px 18px 4px;
}
.portal-boot__thread i:nth-child(4) {
  align-self: flex-end;
  width: min(42%, 224px);
  height: clamp(40px, 7vh, 56px);
  border-radius: 18px 18px 4px;
  background: var(--loading-secondary);
}
.portal-boot__composer {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  gap: 10px;
  padding: 12px;
  background: #f0f0e9;
}
.portal-boot__composer i {
  height: 42px;
}
.portal-boot__list {
  max-width: 1210px;
  margin: auto;
}
.portal-boot__hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 16px 0 20px;
}
.portal-boot__hero > i:first-child {
  width: min(70%, 300px);
  height: 44px;
}
.portal-boot__subtitle {
  display: grid;
  gap: 5px;
  justify-items: center;
  width: 65%;
}
.portal-boot__subtitle i {
  width: 100%;
  height: 16px;
  background: var(--loading-secondary);
}
.portal-boot__subtitle i:last-child {
  display: none;
}
.portal-boot__toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 10px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #f7f5ef;
  border: 1px solid #fffdf9;
}
.portal-boot__toolbar i {
  height: 44px;
  background: #fcfaf6;
  border: 1px solid #e5dfd4;
}
.portal-boot__table {
  background: #fcfaf6;
  border: 1px solid #fffdf9;
  border-radius: 8px;
  overflow: hidden;
}
.portal-boot__columns {
  display: grid;
  grid-template-columns: 5fr 18fr 29fr 18fr 19fr 11fr;
  align-items: center;
  gap: 0;
  padding: 14px 16px;
  background: #f5efe7;
}
.portal-boot__columns i {
  width: 70%;
  height: 14px;
}
.portal-boot__table-row {
  min-height: 88px;
  background: #fcfaf6;
  border-top: 1px solid #eee6dc;
}
@keyframes portal-placeholder-pulse {
  50% {
    opacity: 0.6;
  }
}
@media (width <= 768px) {
  .portal-boot {
    padding: 12px 8px 88px;
  }
  .portal-boot__panel {
    padding: 6px;
  }
  .portal-boot__tabs {
    gap: 8px;
    justify-content: space-around;
    margin: 12px 0 20px;
  }
  .portal-boot__tabs i {
    width: 19%;
    height: 14px;
  }
  .portal-boot__workflow {
    padding: 0 6px 6px;
  }
  .portal-boot__rail {
    margin-bottom: 10px;
    padding: 12px 5px;
  }
  .portal-boot__rail::before {
    top: 23px;
  }
  .portal-boot__stage i:first-child {
    width: 24px;
    height: 24px;
  }
  .portal-boot__stage i:not(:first-child) {
    height: 8px;
  }
  .portal-boot__work {
    padding: 8px;
  }
  .portal-boot__row {
    min-height: 60px;
    padding: 7px;
    gap: 6px;
  }
  .portal-boot__row i:nth-child(2) {
    width: 40%;
  }
  .portal-boot__row i:last-child {
    width: 26%;
    min-width: 72px;
  }
  .portal-boot__footer {
    padding: 12px 4px 4px;
  }
  .portal-boot__footer i {
    width: 40%;
  }
  .portal-boot__profile {
    padding: 8px;
    min-height: 60px;
    gap: 8px;
  }
  .portal-boot__profile i:first-child {
    width: 29px;
    height: 29px;
  }
  .portal-boot__profile i:last-child {
    width: 56px;
  }
  .portal-boot__fields > div {
    padding: 8px;
    min-height: 112px;
  }
  .portal-boot__messages {
    margin: 0 -6px -6px;
  }
  .portal-boot__thread {
    padding: 12px 10px;
  }
  .portal-boot__composer {
    grid-template-columns: 40px 1fr 44px;
    gap: 8px;
    padding: 10px;
  }
  .portal-boot__hero {
    padding: 12px 0 16px;
  }
  .portal-boot__hero > i:first-child {
    height: 28px;
    width: 60%;
  }
  .portal-boot__toolbar {
    grid-template-columns: 1fr 25% 25%;
    gap: 5px;
    padding: 6px;
  }
  .portal-boot__columns {
    grid-template-columns: 7.5fr 18.5fr 22fr 19fr 18fr 15fr;
    padding-inline: 8px;
  }
  .portal-boot__table-row {
    min-height: 58px;
  }
  .portal-boot__columns i {
    height: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-boot i {
    animation: none;
  }
}

.portal-boot__profile i:first-child,
.portal-boot__profile i:last-child,
.portal-boot__fields i:first-child {
  background: #eee6dc;
}

/* The admin shell switches to its compact brand through 900px. */
@media (width <= 900px) {
  .portal-boot {
    padding-top: 0;
  }
  .portal-boot__header {
    grid-template-columns: minmax(0, 1fr) auto;
    height: 68px;
    margin-bottom: 12px;
    padding: 0.5rem clamp(0.9rem, 4vw, 1.15rem);
    width: 100vw;
  }
  .portal-boot__brand {
    gap: 0.52rem;
    padding: 0;
  }
  .portal-boot__brand-mark {
    height: 2.08rem;
    width: 2.08rem;
  }
  .portal-boot__brand-words {
    font-size: clamp(0.94rem, 3.9vw, 1.1rem);
    gap: 0.18rem;
  }
  .portal-boot__nav {
    display: none;
  }
  .portal-boot__account {
    width: 44px;
    height: 44px;
  }
}
@media (600px < width <= 900px) {
  .portal-boot__header {
    height: 84px;
  }
  .portal-boot__account {
    height: 48px;
    width: 48px;
  }
}

@media (900px < width <= 1100px) {
  .portal-boot__nav {
    width: 44vw;
  }
}

@media (width <= 900px) {
  [data-loading-view='leads'] .portal-boot__header {
    margin-bottom: -4px;
  }
  .portal-boot__hero {
    gap: 12px;
    padding: 0 0 12px;
  }
  .portal-boot__hero > i:first-child {
    height: 28px;
    width: min(70%, 220px);
  }
  .portal-boot__subtitle {
    width: 94%;
  }
  .portal-boot__subtitle i {
    height: 12px;
  }
  .portal-boot__subtitle i:last-child {
    display: block;
    width: 66%;
  }
  .portal-boot__toolbar i {
    height: 32px;
  }
  .portal-boot__columns {
    padding-block: 9px;
  }
}

@media (width <= 768px) {
  .portal-boot__row {
    min-height: 55px;
  }
  .portal-boot__row i:last-child {
    height: 32px;
  }
  .portal-boot__footer {
    padding: 8px 4px 4px;
  }
  .portal-boot__footer i {
    height: 32px;
    width: 96px;
  }
  .portal-boot__footer i:last-child {
    width: 80px;
  }
}

.portal-boot__row i:last-child,
.portal-boot__footer i {
  align-items: center;
  display: inline-flex;
  font:
    700 16px/normal 'FKGroteskNeue',
    Arial,
    sans-serif;
  justify-content: center;
  height: auto;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
}
.portal-boot__row i:last-child > span,
.portal-boot__footer i > span {
  visibility: hidden;
}
.portal-boot__footer {
  padding: 12px 4px 4px;
}
.portal-boot__footer i {
  font-weight: 400;
  min-height: 0;
  padding: 0.55rem 0.75rem;
  width: max-content;
}
.portal-boot__footer i:last-child {
  padding: 0.6rem 0.85rem;
  width: max-content;
}
@media (width <= 768px) {
  .portal-boot__row i:last-child,
  .portal-boot__footer i {
    font-size: clamp(10px, 2.6vw, 13px);
    height: 32px;
    min-height: 32px;
    padding: 0.3rem;
    white-space: nowrap;
  }
  .portal-boot__footer i,
  .portal-boot__footer i:last-child {
    padding: 0.3rem 0.4rem;
  }
}

@media (width <= 900px) {
  .portal-boot__header {
    margin-bottom: -4px;
  }
}
@media (width <= 768px) {
  .portal-boot__tabs {
    align-items: center;
    display: grid;
    gap: 0.18rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 32px;
    margin: 0 0 8px;
  }
  .portal-boot__tabs i {
    height: 12px;
    justify-self: center;
    max-width: 80%;
  }
  .portal-boot__tabs i:nth-child(1) {
    width: 33px;
  }
  .portal-boot__tabs i:nth-child(2) {
    width: 45px;
  }
  .portal-boot__tabs i:nth-child(3) {
    width: 25px;
  }
  .portal-boot__tabs i:nth-child(4) {
    width: 50px;
  }
  [data-loading-view='details'] .portal-boot__tabs i:nth-child(1),
  [data-loading-view='workflow'] .portal-boot__tabs i:nth-child(2),
  [data-loading-view='email'] .portal-boot__tabs i:nth-child(3),
  [data-loading-view='whatsapp'] .portal-boot__tabs i:nth-child(4) {
    box-shadow: 0 0 0 6px #f0f1ea;
  }
}
