.ce-root {
  --ce-ink: #242522;
  --ce-muted: #73766e;
  --ce-line: #e2e4dd;
  --ce-paper: #fafbf7;
  min-height: 100vh;
  background: var(--ce-paper);
  color: var(--ce-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.ce-root * {
  box-sizing: border-box;
}
.ce-root h1,
.ce-root h2,
.ce-root h3,
.ce-root p {
  margin: 0;
}
.ce-root h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.8px;
  font-weight: 500;
}
.ce-root h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  font-weight: 500;
}
.ce-root h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 550;
  margin: 18px 0 12px;
}
.ce-root a {
  color: inherit;
  text-underline-offset: 4px;
}
.ce-root button,
.ce-root input,
.ce-root select {
  font: inherit;
}
.ce-root button {
  cursor: pointer;
}
.ce-root button:disabled {
  cursor: default;
  opacity: 0.45;
}
.ce-root :focus-visible {
  outline: 3px solid #796442;
  outline-offset: 4px;
}
.ce-root h1:focus,
.ce-root h2:focus {
  outline: none;
}
.ce-header {
  height: 90px;
  border-bottom: 1px solid var(--ce-line);
  padding: 24px max(5vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.ce-header span {
  color: var(--ce-muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.ce-header img {
  height: auto;
  max-height: 30px;
}
.ce-main {
  max-width: 1120px;
  margin: auto;
  padding: 36px 32px 0;
}
.ce-center {
  max-width: 700px;
  margin: 9vh auto;
  padding: 30px;
}
.ce-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--ce-muted);
  margin-bottom: 18px;
}
.ce-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #62665c;
  max-width: 710px;
  margin: 20px 0 !important;
}
.ce-welcome {
  padding: 38px 0 26px;
  max-width: 1000px;
}
.ce-welcome h1 {
  max-width: 800px;
}
.ce-welcome h1 span {
  display: block;
}
.ce-role {
  margin: 18px 0 !important;
  font-size: 18px;
  color: #697060;
}
.ce-note {
  padding: 19px 22px;
  background: #edf0e7;
  border: 1px solid #e0e5d6;
  border-radius: 12px;
  margin: 24px 0;
  color: #4d5844;
  font-size: 14px;
}
.ce-note p {
  margin-top: 8px;
}
.ce-warning {
  background: #fff6e7;
  border-color: #eddbb9;
  color: #755c30;
}
.ce-welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0;
}
.ce-welcome-grid article {
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 14px;
  padding: 26px;
}
.ce-welcome-grid article > span {
  color: #89927d;
  font-size: 12px;
}
.ce-welcome-grid p {
  font-size: 14px;
  color: var(--ce-muted);
}
.ce-muted {
  font-size: 12px;
  color: var(--ce-muted);
  line-height: 1.6;
  margin: 14px 0 !important;
}
.ce-button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 21px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 550;
  transition: background 0.15s;
}
.ce-button.primary {
  background: #252722;
  color: #fff;
}
.ce-button.primary:hover:not(:disabled) {
  background: #44493c;
}
.ce-button.secondary {
  background: #fff;
  border-color: var(--ce-line);
  color: #42473b;
}
.ce-button.text {
  background: transparent;
  text-decoration: underline;
  font-size: 13px;
}
.ce-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--ce-line);
  padding-top: 25px;
  margin-top: 35px;
}
.ce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.ce-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
}
.ce-field input,
.ce-field select {
  width: 100%;
  border: 1px solid #dad2c7;
  background: #fff;
  color: var(--ce-ink);
  padding: 12px 14px;
  border-radius: 7px;
  min-height: 47px;
  font-size: 14px;
  box-shadow: 0 1px 2px #00000003;
}
.ce-field small {
  font-weight: 400;
  color: var(--ce-muted);
  font-size: 11px;
  line-height: 1.5;
}
.ce-field-status {
  font-size: 10px !important;
  letter-spacing: 0.1px;
}
.ce-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--ce-line);
  padding-bottom: 28px;
  margin-bottom: 34px;
}
.ce-steps button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #7c8174;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 0;
}
.ce-steps button[aria-current] {
  color: #252722;
  font-weight: 600;
}
.ce-steps button span {
  background: #f0ece6;
  border-radius: 50%;
  height: 25px;
  min-width: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ce-steps button[aria-current] span {
  background: #30352b;
  color: #fff;
}
.ce-section-heading {
  margin-bottom: 30px;
}
.ce-section-heading h1 {
  font-size: 36px;
}
.ce-auth {
  background: white;
  border: 1px solid var(--ce-line);
  padding: 20px 25px;
  border-radius: 14px;
  margin-bottom: 30px;
}
.ce-auth h3 {
  margin-top: 0;
}
.ce-auth .ce-button {
  margin-top: 20px;
}
.ce-checklist {
  margin: 26px 0 34px;
}
.ce-checklist-heading {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #646e59;
  margin-bottom: 12px;
}
.ce-checklist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ce-checklist-items button {
  border: 1px solid var(--ce-line);
  border-radius: 7px;
  background: white;
  padding: 10px 13px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  text-align: left;
}
.ce-checklist-items button.selected {
  border-color: #596b43;
  background: #f1ede7;
}
.ce-checklist-items button.done {
  color: #5b7343;
}
.ce-checklist-items button span {
  font-size: 11px;
  font-weight: 600;
}
.ce-document-heading p {
  color: var(--ce-muted);
  font-size: 14px;
  margin: 13px 0 24px;
}
.ce-document-heading .ce-eyebrow {
  margin-bottom: 8px;
}
.ce-document-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}
.ce-preview-panel {
  position: sticky;
  top: 20px;
  min-width: 0;
}
.ce-preview {
  background: #e8e2d9;
  border: 1px solid #ded7cd;
  border-radius: 14px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.ce-preview img {
  display: block;
  object-fit: contain;
  width: 100%;
  max-height: 540px;
  border-radius: 6px;
}
.ce-preview object {
  width: 100%;
  height: 520px;
}
.ce-back {
  margin-top: 14px;
  min-height: 180px;
}
.ce-back img {
  max-height: 240px;
}
.ce-empty {
  text-align: center;
  padding: 45px 22px;
  color: #808575;
}
.ce-empty > span {
  display: block;
  font-size: 30px;
  margin-bottom: 18px;
}
.ce-empty strong {
  display: block;
  font-size: 14px;
}
.ce-empty p {
  font-size: 12px;
  margin-top: 8px;
}
.ce-upload-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.ce-upload-button {
  position: relative;
  overflow: hidden;
  border: 1px solid #cec1ae;
  background: white;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 12px;
  cursor: pointer;
  min-height: 43px;
}
.ce-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.ce-upload-button:focus-within {
  outline: 3px solid #796442;
  outline-offset: 3px;
}
.ce-review-panel {
  padding: 25px;
  background: white;
  border: 1px solid var(--ce-line);
  border-radius: 14px;
  min-height: 330px;
}
.ce-review-panel h3 {
  margin-top: 0;
}
.ce-review-empty,
.ce-headshot-review {
  padding: 26px 0;
  color: #686e5e;
}
.ce-extracted {
  gap: 18px 16px;
}
.ce-extracted .ce-field:nth-child(1) {
  grid-column: 1/-1;
}
.ce-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 6px;
  font-size: 12px;
  color: #59624f;
  line-height: 1.6;
  cursor: pointer;
}
.ce-check input {
  appearance: auto;
  accent-color: #4e6240;
  margin-top: 4px;
  min-width: 17px;
  width: 17px;
  height: 17px;
}
.ce-reading {
  padding: 25px 3px;
}
.ce-reading p {
  color: var(--ce-muted);
  font-size: 13px;
}
.ce-read-icon {
  font-size: 32px;
  color: #667953;
  margin-bottom: 22px;
  animation: ce-breathe 2.5s ease-in-out infinite;
}
.ce-skeleton {
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(100deg, #f1ede7 20%, #faf9f7 50%, #f1ede7 80%);
  background-size: 200% 100%;
  animation: ce-shimmer 2s linear infinite;
  margin-top: 23px;
}
.ce-skeleton.short {
  width: 72%;
}
.ce-company-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}
.ce-company-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ce-line);
  border-radius: 10px;
  background: #fff;
  padding: 20px 22px;
  text-align: left;
  color: var(--ce-ink);
  width: 100%;
}
.ce-company-row > span:nth-child(2) {
  flex: 1;
}
.ce-company-row strong {
  font-size: 14px;
  font-weight: 500;
}
.ce-company-row small {
  display: block;
  font-size: 11px;
  color: var(--ce-muted);
  margin-top: 3px;
}
.ce-doc-icon,
.ce-done-icon {
  background: #f1ede7;
  width: 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #687b50;
  border-radius: 6px;
}
.ce-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #1b201cc4;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.ce-company-dialog {
  background: #faf9f7;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 93vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px #0003;
  overflow: hidden;
}
.ce-company-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--ce-line);
}
.ce-company-dialog h2 {
  font-size: 21px;
}
.ce-original-link {
  font-size: 12px;
  padding: 14px 30px;
  display: block;
}
.ce-legal-text {
  white-space: pre-wrap;
  overflow: auto;
  padding: 28px 38px;
  margin: 0 25px;
  background: #fff;
  border: 1px solid var(--ce-line);
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
  min-height: 150px;
}
.ce-dialog-actions {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--ce-line);
  background: #faf9f7;
}
.ce-dialog-actions .ce-check {
  margin-top: 0;
  margin-bottom: 16px;
}
.ce-summary {
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 14px;
  padding: 6px 24px;
}
.ce-summary > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--ce-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ce-summary > div:last-child {
  border: 0;
}
.ce-summary strong {
  font-size: 14px;
  font-weight: 550;
}
.ce-summary p {
  font-size: 13px;
  color: var(--ce-muted);
  margin-top: 5px;
}
.ce-error {
  border: 1px solid #e4b7a8;
  border-radius: 10px;
  background: #fff1ed;
  color: #864735;
  padding: 16px 20px;
  margin: 15px 0 24px;
  font-size: 14px;
}
.ce-footer {
  border-top: 1px solid var(--ce-line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  color: var(--ce-muted);
  font-size: 11px;
}
.ce-success-mark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ede3d1;
  color: #526b3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 35px;
}
.ce-progress {
  padding: 18px 0;
  list-style: none;
}
.ce-progress li {
  padding: 16px 0;
  border-bottom: 1px solid var(--ce-line);
  color: #a1988c;
  display: flex;
  align-items: center;
  gap: 17px;
}
.ce-progress li span {
  min-width: 25px;
  font-size: 22px;
}
.ce-progress li.done {
  color: #647e4d;
}
.ce-progress li.current {
  color: #30372b;
}
.ce-progress li.current span {
  animation: ce-breathe 1.7s infinite;
}
.ce-saving {
  position: fixed;
  bottom: 20px;
  right: 24px;
  border: 1px solid var(--ce-line);
  background: white;
  box-shadow: 0 3px 20px #0001;
  border-radius: 9px;
  padding: 12px 20px;
  color: #657454;
  font-size: 12px;
  z-index: 11000;
}
@keyframes ce-shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes ce-breathe {
  50% {
    opacity: 0.35;
  }
}
@media (max-width: 760px) {
  .ce-header {
    height: 74px;
    padding: 20px;
  }
  .ce-main {
    padding: 24px 20px 0;
  }
  .ce-welcome {
    padding: 22px 0;
  }
  .ce-welcome-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 25px 0;
  }
  .ce-welcome-grid article {
    padding: 20px;
  }
  .ce-welcome-grid h3 {
    margin: 8px 0;
  }
  .ce-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .ce-steps {
    overflow: auto;
    gap: 17px;
    padding-bottom: 20px;
  }
  .ce-steps button {
    min-width: 100px;
    align-items: flex-start;
    flex-direction: column;
  }
  .ce-section-heading h1 {
    font-size: 30px;
  }
  .ce-document-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ce-preview-panel {
    position: static;
  }
  .ce-preview {
    min-height: 180px;
  }
  .ce-preview img {
    max-height: 360px;
  }
  .ce-preview object {
    height: 400px;
  }
  .ce-review-panel {
    padding: 20px;
  }
  .ce-auth {
    padding: 20px;
  }
  .ce-checklist-items {
    gap: 7px;
  }
  .ce-checklist-items button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .ce-actions {
    align-items: stretch;
  }
  .ce-actions .ce-button {
    font-size: 12px;
    padding: 12px 14px;
  }
  .ce-footer {
    flex-direction: column;
    gap: 8px;
  }
  .ce-company-row {
    padding: 17px 15px;
    gap: 12px;
  }
  .ce-dialog-backdrop {
    padding: 10px;
  }
  .ce-company-dialog {
    max-height: 96dvh;
  }
  .ce-company-dialog > header {
    padding: 16px;
  }
  .ce-company-dialog h2 {
    font-size: 17px;
  }
  .ce-legal-text {
    padding: 20px;
    margin: 0 12px;
    font-size: 14px;
  }
  .ce-dialog-actions {
    padding: 18px;
  }
  .ce-dialog-actions .ce-button {
    width: 100%;
    font-size: 12px;
  }
  .ce-center {
    margin: 5vh auto;
    padding: 24px;
  }
  .ce-extracted {
    grid-template-columns: 1fr 1fr;
  }
  .ce-extracted input {
    padding: 10px;
  }
  .ce-summary {
    padding: 4px 16px;
  }
  .ce-summary p {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ce-root * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.ce-header img {
  filter: brightness(0);
}

.ce-optional {
  margin-top: 30px;
  border-top: 1px solid var(--ce-line);
  padding-top: 20px;
}
.ce-optional summary {
  cursor: pointer;
  font-size: 14px;
  color: #68745b;
}
@media (max-width: 760px) {
  .ce-field input,
  .ce-field select {
    font-size: 16px;
  }
}
/* VEKEND charcoal, warm white and restrained gold; preserve existing layout. */
.ce-root {
  --ce-ink: #2d2926;
  --ce-muted: #716c68;
  --ce-line: #e5e0da;
  --ce-paper: #faf9f7;
}
.ce-header {
  background: #242120;
  border-color: #373230;
  color: #fff;
}
.ce-header img {
  filter: brightness(0) invert(1);
}
.ce-header span {
  color: #d5cec7;
}
.ce-root :focus-visible {
  outline-color: #b77b23;
}
.ce-lead,
.ce-role {
  color: #6c645e;
}
.ce-note {
  background: #f0ece6;
  border-color: #e2dbd1;
  color: #514940;
}
.ce-button.primary {
  background: #ffa400;
  color: #242120;
  border-color: #ffa400;
}
.ce-button.primary:hover:not(:disabled) {
  background: #ef9800;
  border-color: #ef9800;
}
.ce-welcome-grid article > span {
  color: #88735a;
}
.ce-field [aria-invalid="true"] {
  border-color: #ac342e;
  box-shadow: 0 0 0 1px #ac342e;
}
.ce-field-error {
  color: #a42c25 !important;
}
.ce-error ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.ce-root .ob-confetti {
  pointer-events: none;
}
.ce-company-dialog {
  width: min(1560px, 98vw);
  max-width: none;
  height: 96dvh;
  max-height: 96dvh;
  overflow: auto;
}
.ce-sign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  flex: 1;
  min-height: 0;
  gap: 28px;
  padding: 20px;
}
.ce-pdf-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  min-width: 0;
}
.ce-pdf-pages {
  background: #e6e1db;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 12px;
  overscroll-behavior: contain;
}
.ce-pdf-pages canvas {
  display: block;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px #0002;
}
.ce-sign-panel {
  overflow: auto;
  padding: 0 6px 8px;
  min-width: 0;
}
.ce-sign-panel .ce-field {
  margin: 18px 0;
}
.ce-sign-panel .ce-check {
  margin: 18px 0;
}
.ce-signature-pad {
  width: 100%;
  height: 150px;
  background: #fff;
  border: 1px solid #bcb4a9;
  border-radius: 8px;
  touch-action: none;
}
.ce-sign-panel .ce-button.primary {
  width: 100%;
  margin-top: 16px;
}
@media (max-width: 760px) {
  .ce-sign-layout {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 18px;
  }
  .ce-pdf-pages {
    max-height: 50vh;
  }
  .ce-company-dialog {
    max-height: 96dvh;
  }
  .ce-sign-panel input {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ob-confetti {
    display: none;
  }
}

/* VEKEND orange accents; keep charcoal typography and warm, restrained surfaces. */
.ce-steps button[aria-current] span {
  background: #ffa400;
  color: #242120;
}
.ce-button.secondary,
.ce-checklist-items button.done,
.ce-done-icon,
.ce-doc-icon,
.ce-success-mark,
.ce-progress li.done,
.ce-progress li.current,
.ce-saving {
  color: #2d2926;
}
.ce-check input {
  accent-color: #ffa400;
}
.ce-checklist-items button.selected {
  border-color: #ffa400;
  background: #fff4df;
}
.ce-dialog-backdrop {
  padding: 2dvh 1vw;
  background: #191716c4;
}
.ce-company-dialog > header {
  flex-shrink: 0;
}
.ce-saved-signature {
  margin: 18px 0;
}
.ce-saved-signature p {
  margin-top: 10px;
}
.ce-headshot-id {
  margin-top: 24px;
}
.ce-headshot-id h3 {
  text-align: center;
  margin-bottom: 18px;
}
.ce-headshot-id .ob-id-preview {
  max-width: 240px;
}
.ce-headshot-id .ob-id-assignment > p {
  color: white;
}
@media (max-width: 760px) {
  .ce-headshot-id .ob-id-preview {
    max-width: 200px;
  }
  .ce-sign-layout {
    flex: none;
  }
  .ce-sign-panel {
    overflow: visible;
  }
  .ce-pdf-pages {
    flex: none;
    max-height: 54dvh;
  }
}

.ce-root {
  --ce-accent: #ffa400;
}
.ce-root :focus-visible {
  outline-color: #b36b00;
}
.ce-button.secondary:hover:not(:disabled) {
  background: #fff4df;
  border-color: #ffa400;
}
.ce-doc-icon,
.ce-done-icon {
  background: #fff0d2;
  color: #895200;
}
.ce-success-mark {
  background: #ffa400;
  color: #242120;
}
.ce-progress li.done span,
.ce-progress li.current span {
  color: #a45f00;
}
.ce-welcome-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 7px;
  background: #fff0d2;
  color: #895200;
}

.ce-save-status {padding:8px 24px;text-align:right;font-size:11px;color:#777e6b;background:#f4f6ef;border-bottom:1px solid #e8ebdf;}

.ce-signout {background:none;border:1px solid #d9ddd1;border-radius:5px;padding:7px 12px;font-size:11px!important;color:inherit;}

@media(max-width:360px){.ce-header>span{display:none}}
