/* The platform identity is the default. Saved company themes keep their tokens. */
:root:not([data-company-customized='true']) {
  --nav: #f8faff;
  --nav-soft: #eaf0fc;
  --canvas: #f4f7fc;
  --bg: #f8faff;
  --surface: #fff;
  --ink: #172b4d;
  --muted: #60718b;
  --line: #dfe7f2;
  --brand: #1c5bd9;
  --brand-primary: #1c5bd9;
  --accent: #1c5bd9;
  --accent-ink: #fff;
  --action: #1c5bd9;
  --action-soft: #eaf1ff;
  --nav-accent: #1c5bd9;
  --blue: #1c5bd9;
  --radius: 18px;
  --border: var(--line);
}
.domora-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-loading {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px 96px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #fff 0%, #f7faff 48%, #edf3ff 100%);
  color: #172b4d;
  text-align: center;
}
.brand-loading-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(#d4e1f5 1px, transparent 1px),
    linear-gradient(90deg, #d4e1f5 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, transparent 22%, #000 95%);
}
.brand-loading-card {
  width: min(100%, 560px);
  padding: 48px 36px 40px;
  border: 1px solid #e0e9f8;
  border-radius: 28px;
  background: #ffffffd9;
  box-shadow: 0 28px 90px -48px #2f66bb4d;
}
.brand-loading-logo {
  width: 420px;
  margin: 0 auto 36px;
}
.brand-loading-track {
  width: 180px;
  height: 3px;
  overflow: hidden;
  border-radius: 8px;
  background: #e4edfc;
  margin: 0 auto 28px;
}
.brand-loading-track span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: 8px;
  background: #1c5bd9;
  animation: domora-loading-scan 1.7s ease-in-out infinite;
}
.brand-loading h1 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.25px;
  margin: 0 0 9px;
}
.brand-loading-card > p {
  font-size: 13px;
  color: #60718b;
  margin: 0;
  line-height: 1.7;
}
.brand-loading-signature {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
  font-size: 12px;
  color: #60718b;
  letter-spacing: 0.15px;
}
.brand-loading-help {
  margin-top: 24px;
  border-top: 1px solid #e0e9f8;
  padding-top: 20px;
  font-size: 13px;
  color: #526882;
  line-height: 1.6;
}
.brand-loading-help[hidden] {
  display: none;
}
.brand-loading-help p {
  margin: 0 0 12px;
}
.brand-no-script {
  color: #8a4419 !important;
  margin-top: 24px !important;
}
@keyframes domora-loading-scan {
  0% {
    transform: translateX(-105%);
  }
  65%,
  100% {
    transform: translateX(325%);
  }
}

/* First touch: the same accepted logo, typography and color as the workspace. */
.auth-page {
  background: #f4f7fc;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
}
.auth-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px clamp(30px, 6vw, 94px);
  background: radial-gradient(ellipse at 8% 0%, #ffffff 0%, #f4f8ff 55%, #e5efff 100%);
  color: #172b4d;
  border-right: 1px solid #dfe7f2;
}
.auth-aside::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 540px;
  height: 540px;
  border: 1px solid #c6d8f5;
  border-radius: 100px;
  right: -255px;
  bottom: -260px;
  transform: rotate(-28deg);
  box-shadow:
    0 0 0 48px #dce8fc66,
    0 0 0 96px #e6effc80;
}
.auth-aside .auth-brand {
  width: min(330px, 100%);
  padding: 0;
  display: block;
}
.auth-story {
  padding: 56px 0;
  max-width: 520px;
}
.auth-aside .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #315b92;
}
.auth-aside h1 {
  font-size: clamp(37px, 4.2vw, 62px);
  max-width: 540px;
  margin: 22px 0;
  line-height: 1.07;
  letter-spacing: -2.5px;
  font-weight: 700;
}
.auth-aside h1 span {
  color: #1c5bd9;
}
.auth-aside .auth-story > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: #536b8b;
  max-width: 375px;
}
.auth-journey {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.auth-journey > div {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  padding: 12px 15px;
  border: 1px solid #d4e0f4;
  border-radius: 12px;
  background: #ffffffc9;
  color: #34577f;
}
.auth-journey .icon {
  width: 18px;
  height: 18px;
  color: #1c5bd9;
}
.auth-aside .auth-signature {
  font-size: 12px;
  color: #647c99;
  line-height: 1.5;
}
.auth-content {
  background: #fff;
  padding: 60px 42px;
}
.auth-box {
  max-width: 410px;
}
.auth-box h2 {
  font-size: 30px;
  letter-spacing: -1px;
  color: #172b4d;
}
.auth-box > p {
  font-size: 14px;
  line-height: 1.7;
}
.auth-box .form-field {
  margin-bottom: 21px;
}
.auth-box .form-field label {
  font-size: 13px;
}
.auth-box .form-field input {
  border-radius: 12px;
  border-color: #d6e0ee;
  min-height: 51px;
  background: #fafcff;
}
.auth-box .form-field input:focus {
  background: #fff;
  border-color: #1c5bd9;
  outline: 3px solid #dfeaff;
  outline-offset: 1px;
}
.auth-box .btn.primary {
  min-height: 51px;
  border-radius: 12px;
  background: #1c5bd9;
  color: #fff;
  box-shadow: 0 5px 14px #1c5bd924;
}
.auth-box .demo-link {
  line-height: 1.9;
  font-size: 12px;
}
.auth-box .demo-link a {
  color: #1c5bd9;
}
.company-chooser > .auth-brand {
  width: min(300px, 100%);
  margin-bottom: 36px;
}

/* Shared polish applies to existing pages without changing their controls. */
.os-layout .surface,
.os-layout .app-card,
.os-layout .crm-panel,
.os-layout .crm-table-wrap {
  box-shadow: 0 3px 18px -12px #243d6830;
}
.os-layout .page-heading h1 {
  letter-spacing: -1px;
}
.os-layout .btn {
  border-radius: 11px;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.os-layout .btn.primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--action) 16%, transparent);
}
.os-layout .btn.primary:hover:not(:disabled) {
  box-shadow: 0 5px 16px color-mix(in srgb, var(--action) 22%, transparent);
  transform: translateY(-1px);
}
.os-layout :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}
.os-layout .app-card {
  border-radius: 20px;
}
.os-layout .app-icon {
  border-radius: 14px;
}
/* Keep the cards' absolute screen-reader labels inside the scrollable board. */
.os-layout .crm-pipeline {
  position: relative;
}
@media (max-width: 1000px) {
  .auth-aside {
    padding: 40px 34px;
  }
  .auth-aside h1 {
    font-size: 42px;
  }
  .auth-journey {
    gap: 8px;
  }
  .auth-journey > div {
    padding: 10px 11px;
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .auth-page {
    display: block;
  }
  .auth-aside {
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid #dfe7f2;
  }
  .auth-aside .auth-brand {
    width: 224px;
    margin: 0 auto;
  }
  .auth-aside .auth-story,
  .auth-aside .auth-signature {
    display: none;
  }
  .auth-content {
    padding: 38px 24px;
    min-height: calc(100dvh - 119px);
  }
  .auth-box h2 {
    font-size: 27px;
  }
  .brand-loading {
    padding: 24px 20px 92px;
  }
  .brand-loading-card {
    padding: 34px 20px 30px;
    border-radius: 22px;
  }
  .brand-loading-logo {
    margin-bottom: 28px;
  }
  .brand-loading h1 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-loading-track span {
    animation: none;
    transform: none;
    width: 100%;
    background: #a9c6fa;
  }
  .os-layout .btn {
    transition: none;
  }
  .os-layout .btn:hover {
    transform: none;
  }
}

.setup-logo-upload {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  background: var(--surface);
}
.setup-logo-upload small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.setup-company-logo {
  display: block;
  max-width: 240px;
  max-height: 120px;
  object-fit: contain;
  margin: 12px 0;
}
.company-uploaded-logo {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 64px;
  object-fit: contain;
}
.mobile-brand .company-uploaded-logo {
  max-width: 120px;
  max-height: 34px;
}
.studio-company-logo {
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
}
