:root{
  --wd-navy:#0f172a;--wd-blue:#1d4ed8;--wd-soft:#f5f7fb;--wd-line:#e5e7eb;--wd-text:#111827;--wd-muted:#6b7280;--wd-green:#16a34a;--wd-orange:#f59e0b;--wd-red:#dc2626;--wd-card:#ffffff;
}
.wd-admin-hero,.wd-page-title{background:linear-gradient(135deg,#0f172a,#1d4ed8);border-radius:18px;padding:28px 32px;color:#fff;margin-bottom:22px;box-shadow:0 16px 40px rgba(15,23,42,.18);display:flex;align-items:center;justify-content:space-between;gap:20px}.wd-admin-hero h1,.wd-page-title h1{font-size:30px;font-weight:800;margin:4px 0 8px}.wd-admin-hero p,.wd-page-title p{color:rgba(255,255,255,.82);max-width:780px;margin:0}.wd-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#bfdbfe}.wd-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.wd-panel{border:0;border-radius:16px;box-shadow:0 12px 30px rgba(15,23,42,.08);overflow:hidden}.wd-stats-row{margin-bottom:20px}.wd-stat-card{background:#fff;border-radius:16px;padding:20px;border:1px solid #edf0f6;box-shadow:0 10px 24px rgba(15,23,42,.06)}.wd-stat-card span{display:block;color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.wd-stat-card strong{font-size:28px;color:#111827}.wd-progress{height:7px;margin-bottom:4px;background:#e5e7eb}.wd-progress .progress-bar{background:#1d4ed8}.wd-table-title{font-weight:700;color:#111827}.wd-side-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px;box-shadow:0 12px 30px rgba(15,23,42,.08);margin-bottom:20px}.wd-side-card h4{font-weight:800;margin-top:0}.wd-side-card ol{padding-left:18px;color:#4b5563;line-height:1.75}.wd-section-heading{font-weight:800;margin-top:0}.wd-tab-content{padding-top:20px}.wd-answer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.wd-answer-item{background:#f9fafb;border:1px solid #edf0f6;border-radius:12px;padding:14px}.wd-answer-item label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;display:block}.wd-answer-item div{white-space:pre-wrap;color:#111827}.wd-copy-box{font-size:13px;line-height:1.55;background:#0f172a;color:#e5e7eb;border-radius:12px;border:0}.wd-upload-row{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#f9fafb;border:1px solid #edf0f6;border-radius:12px;padding:12px;margin-bottom:10px}.wd-timeline-item{border-left:3px solid #dbeafe;padding:0 0 16px 14px}.wd-timeline-item span{font-size:12px;color:#6b7280}.wd-timeline-item p{margin:4px 0 0}.wd-profile-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}

.wd-client-body{margin:0;background:linear-gradient(135deg,#eef4ff,#f8fafc);color:var(--wd-text);min-height:100vh}.wd-client-shell{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:100vh}.wd-client-sidebar{background:var(--wd-navy);color:white;padding:32px 26px;position:sticky;top:0;height:100vh;overflow:auto}.wd-brand-block h2{font-size:24px;margin:6px 0}.wd-brand-block p{color:#cbd5e1}.wd-linked-client-banner{background:rgba(59,130,246,.18);border:1px solid rgba(147,197,253,.32);border-radius:14px;padding:14px;margin:22px 0;color:#dbeafe}.wd-linked-client-banner strong{display:block;margin-bottom:5px}.wd-linked-client-banner span{font-size:13px;color:#cbd5e1}.wd-linked-client-banner.wd-neutral{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14)}.wd-progress-ring{width:132px;height:132px;border-radius:50%;border:10px solid rgba(255,255,255,.13);display:flex;flex-direction:column;align-items:center;justify-content:center;margin:24px auto;background:rgba(255,255,255,.06)}.wd-progress-ring span{font-size:30px;font-weight:900}.wd-progress-ring small{color:#cbd5e1}.wd-step-list{list-style:none;margin:24px 0 0;padding:0}.wd-step-list li{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;color:#cbd5e1;font-size:14px}.wd-step-list li span{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.12);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}.wd-step-list li.active{background:white;color:#0f172a;font-weight:800}.wd-step-list li.done{color:#93c5fd}.wd-client-main{padding:34px;max-width:1080px;width:100%;box-sizing:border-box}.wd-client-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.wd-client-header h1{font-size:34px;margin:0 0 6px;font-weight:900}.wd-client-header p{margin:0;color:#64748b}.wd-save-state{background:white;border:1px solid #e5e7eb;padding:10px 14px;border-radius:999px;color:#64748b;font-weight:700;box-shadow:0 8px 22px rgba(15,23,42,.06)}.wd-save-state.saved{color:var(--wd-green)}.wd-save-state.saving{color:var(--wd-orange)}.wd-save-state.error{color:var(--wd-red)}.wd-step-panel{background:white;border-radius:22px;padding:28px;box-shadow:0 20px 50px rgba(15,23,42,.10);border:1px solid #e5e7eb;margin-bottom:18px}.wd-step-panel h2{font-size:26px;font-weight:900;margin:0 0 18px}.wd-step-panel h3{font-size:17px;margin:24px 0 12px;font-weight:800}.wd-help{color:#64748b}.wd-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wd-step-panel label{display:block;font-weight:800;margin-bottom:16px;color:#1f2937}.wd-step-panel input:not([type="checkbox"]),.wd-step-panel textarea,.wd-step-panel select{width:100%;border:1px solid #d9e0ea;border-radius:12px;padding:13px 14px;margin-top:8px;font-size:15px;box-sizing:border-box;background:#fff}.wd-step-panel textarea{resize:vertical}.wd-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.wd-check-grid label{display:flex;align-items:center;gap:10px;margin:0;border:1px solid #e5e7eb;border-radius:14px;padding:13px;background:#f8fafc;cursor:pointer;font-weight:700}.wd-check-grid input{width:18px;height:18px;accent-color:var(--wd-blue)}.wd-upload-box{border:2px dashed #cbd5e1;background:#f8fafc;border-radius:18px;padding:22px;text-align:center}.wd-upload-box input{border:0!important;background:transparent!important}.wd-upload-box p{color:#64748b}.wd-upload-existing ul{padding-left:18px}.wd-review-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:20px}.wd-confirm{display:flex!important;align-items:center;gap:10px}.wd-form-actions{display:flex;justify-content:space-between;gap:12px;margin-bottom:30px}.wd-btn{appearance:none;border:0;background:var(--wd-blue);color:white;border-radius:12px;padding:13px 20px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.wd-btn.secondary{background:#475569}.wd-btn.success{background:var(--wd-green)}.wd-thankyou{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:30px}.wd-thankyou-card{max-width:560px;background:white;padding:40px;border-radius:24px;text-align:center;box-shadow:0 20px 50px rgba(15,23,42,.12)}.wd-checkmark{width:74px;height:74px;background:#dcfce7;color:#16a34a;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:42px;margin:0 auto 18px;font-weight:900}.wd-portal-list{max-width:980px;margin:0 auto;padding:40px}.wd-brief-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.wd-brief-card{background:white;border:1px solid #e5e7eb;border-radius:18px;padding:20px;text-decoration:none;color:#111827;box-shadow:0 12px 30px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:7px}.wd-brief-card strong{font-size:18px}.wd-brief-card em{color:#64748b}.wd-empty{background:white;border-radius:18px;padding:24px;color:#64748b}
@media(max-width:900px){.wd-client-shell{grid-template-columns:1fr}.wd-client-sidebar{position:relative;height:auto}.wd-form-grid{grid-template-columns:1fr}.wd-client-main{padding:18px}.wd-client-header{display:block}.wd-admin-hero{display:block}.wd-hero-actions{margin-top:14px}}


/* Admin create client live-search/autofill */
.wd-client-live-search .bootstrap-select .bs-searchbox input {
  border-radius: 10px;
  border: 1px solid #d7dce5;
  box-shadow: none;
  min-height: 38px;
}
.wd-autofill-note {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.wd-client-autofill-card {
  margin: 18px 0 22px;
  border: 1px solid #dbe3ef;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .07);
}
.wd-client-autofill-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.wd-client-autofill-head strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
}
.wd-client-autofill-head small {
  color: #64748b;
}
.wd-client-autofill-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef5ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.wd-client-autofill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wd-client-autofill-grid div {
  border: 1px solid #edf1f7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.wd-client-autofill-grid span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.wd-client-autofill-grid strong {
  color: #1f2937;
  word-break: break-word;
}
.wd-client-autofill-wide {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .wd-client-autofill-grid { grid-template-columns: 1fr; }
}


/* Website Discovery client live-search/autofill patch */
.website-discovery-admin .wd-client-live-search .bootstrap-select,
.website-discovery-admin #wdContactWrap .bootstrap-select {
  width: 100% !important;
}

.website-discovery-admin .wd-autofill-note {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.website-discovery-admin .wd-autofill-note i {
  margin-right: 5px;
}

.website-discovery-admin .wd-client-autofill-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  padding: 18px;
  margin: 18px 0 22px;
}

.website-discovery-admin .wd-client-autofill-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.website-discovery-admin .wd-client-autofill-head strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
}

.website-discovery-admin .wd-client-autofill-head small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.website-discovery-admin .wd-client-autofill-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.website-discovery-admin .wd-client-autofill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.website-discovery-admin .wd-client-autofill-grid div {
  background: #fff;
  border: 1px solid #e5efff;
  border-radius: 12px;
  padding: 10px 12px;
}

.website-discovery-admin .wd-client-autofill-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.website-discovery-admin .wd-client-autofill-grid strong {
  color: #111827;
  font-size: 13px;
  word-break: break-word;
}

.website-discovery-admin .wd-client-autofill-wide {
  grid-column: 1 / -1;
}

.website-discovery-admin .wd-standalone-note p {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .website-discovery-admin .wd-client-autofill-grid {
    grid-template-columns: 1fr;
  }
}


/* Website Discovery client live-search/autofill repair */
.website-discovery-admin .wd-client-live-search .bootstrap-select,
.website-discovery-admin #wdContactWrap .bootstrap-select {
  width: 100% !important;
}

.website-discovery-admin .wd-autofill-note {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.website-discovery-admin .wd-client-autofill-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  padding: 18px;
  margin: 18px 0 22px;
}

.website-discovery-admin .wd-client-autofill-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.website-discovery-admin .wd-client-autofill-head strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
}

.website-discovery-admin .wd-client-autofill-head small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.website-discovery-admin .wd-client-autofill-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.website-discovery-admin .wd-client-autofill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.website-discovery-admin .wd-client-autofill-grid div {
  background: #fff;
  border: 1px solid #e5efff;
  border-radius: 12px;
  padding: 10px 12px;
}

.website-discovery-admin .wd-client-autofill-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.website-discovery-admin .wd-client-autofill-grid strong {
  color: #111827;
  font-size: 13px;
  word-break: break-word;
}

.website-discovery-admin .wd-client-autofill-wide {
  grid-column: 1 / -1;
}

.website-discovery-admin .wd-standalone-note p {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .website-discovery-admin .wd-client-autofill-grid {
    grid-template-columns: 1fr;
  }
}


/* Website Discovery native AJAX client live-search */
.website-discovery-admin .wd-client-live-search .bootstrap-select,
.website-discovery-admin .wd-client-live-search .select2,
.website-discovery-admin .wd-client-live-search .select2-container,
.website-discovery-admin #wdContactWrap .bootstrap-select {
  width: 100% !important;
}

.website-discovery-admin .wd-client-live-search .dropdown-menu.inner {
  max-height: 320px !important;
}

.website-discovery-admin .wd-autofill-note {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.website-discovery-admin .wd-autofill-note i {
  margin-right: 5px;
}

.website-discovery-admin .wd-client-autofill-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  padding: 18px;
  margin: 18px 0 22px;
}

.website-discovery-admin .wd-client-autofill-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.website-discovery-admin .wd-client-autofill-head strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
}

.website-discovery-admin .wd-client-autofill-head small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.website-discovery-admin .wd-client-autofill-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.website-discovery-admin .wd-client-autofill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.website-discovery-admin .wd-client-autofill-grid div {
  background: #fff;
  border: 1px solid #e5efff;
  border-radius: 12px;
  padding: 10px 12px;
}

.website-discovery-admin .wd-client-autofill-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.website-discovery-admin .wd-client-autofill-grid strong {
  color: #111827;
  font-size: 13px;
  word-break: break-word;
}

.website-discovery-admin .wd-client-autofill-wide {
  grid-column: 1 / -1;
}

.website-discovery-admin .wd-standalone-note p {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .website-discovery-admin .wd-client-autofill-grid {
    grid-template-columns: 1fr;
  }
}


/* Website Discovery admin action buttons and PDF controls */
.website-discovery-admin .wd-admin-action-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.website-discovery-admin .wd-action-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.website-discovery-admin .wd-inline-form {
  display: inline-block;
  margin: 0;
}

.website-discovery-admin .wd-action-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
  font-size: 12px;
}

.website-discovery-admin .wd-action-meta span {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}


/* Website Discovery index job bars */
.website-discovery-admin.wd-index-page .wd-index-header,
.website-discovery-admin .wd-index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.website-discovery-admin .wd-index-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 25px;
  font-weight: 700;
}

.website-discovery-admin .wd-index-header p {
  margin: 5px 0 0;
  color: #64748b;
}

.website-discovery-admin .wd-job-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.website-discovery-admin .wd-job-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
}

.website-discovery-admin .wd-job-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.website-discovery-admin .wd-job-title {
  min-width: 0;
  flex: 1;
}

.website-discovery-admin .wd-job-reference {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.website-discovery-admin .wd-ref-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.website-discovery-admin .wd-job-title h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.website-discovery-admin .wd-job-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: #64748b;
  font-size: 12px;
}

.website-discovery-admin .wd-job-subline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.website-discovery-admin .wd-job-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 620px;
}

.website-discovery-admin .wd-inline-form {
  display: inline-block;
  margin: 0;
}

.website-discovery-admin .wd-job-progress-wrap {
  padding: 14px 18px 4px;
}

.website-discovery-admin .wd-job-progress-meta {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 6px;
}

.website-discovery-admin .wd-job-progress {
  height: 8px;
  margin-bottom: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  box-shadow: none;
}

.website-discovery-admin .wd-job-progress .progress-bar {
  border-radius: 999px;
}

.website-discovery-admin .wd-job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 16px;
  color: #64748b;
  font-size: 12px;
}

.website-discovery-admin .wd-job-meta-row span {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}

.website-discovery-admin .wd-empty-state {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 45px 25px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
}

.website-discovery-admin .wd-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}

.website-discovery-admin .wd-empty-state h3 {
  margin: 0 0 8px;
  color: #111827;
}

.website-discovery-admin .wd-empty-state p {
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 18px;
}

@media (max-width: 991px) {
  .website-discovery-admin .wd-index-header,
  .website-discovery-admin .wd-job-bar {
    flex-direction: column;
  }

  .website-discovery-admin .wd-job-actions {
    justify-content: flex-start;
    max-width: none;
  }
}


/* Website Discovery default e-signature styling */
.wd-esign-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.wd-esign-card h3 {
  margin-top: 0;
  color: #0f172a;
}

.wd-esign-intro,
.wd-compliance-note {
  color: #64748b;
  font-size: 13px;
}

.wd-signature-pad-wrap {
  margin: 12px 0 15px;
}

.wd-signature-canvas {
  display: block;
  width: 100%;
  height: 160px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #ffffff;
  touch-action: none;
}

.wd-clear-signature {
  margin-top: 10px;
}

.wd-existing-signature {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
}

.wd-compliance-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.wd-compliance-admin-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.wd-admin-signature-image {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}

.wd-admin-signature-image img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Website Discovery delete action alignment */
.website-discovery-admin .wd-delete-form {
  display: inline-block;
  margin: 0;
}

.website-discovery-admin .wd-job-actions .btn-danger {
  border-color: #dc2626;
}


/* Website Discovery final-step e-signature repair */
#wdESignCard[data-final-step-only="1"] input,
#wdESignCard[data-final-step-only="1"] canvas {
  max-width: 100%;
}

#wdESignCard {
  clear: both;
}


/* Website Discovery: e-signature must only show on final step */
#wdESignCard[data-final-step-only="1"] .wd-signature-canvas {
  max-width: 100%;
}


/* Website Discovery upload/signature repair */
.wd-upload-success {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 700;
}


/* Website Discovery upload state */
.wd-upload-state {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.wd-upload-state.success {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}

.wd-upload-state.error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.wd-upload-state.loading {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}


/* Website Discovery final signature visibility */
#wdESignCard {
  display: none;
}

body.wd-final-step-active #wdESignCard {
  display: block !important;
  margin-top: 22px;
  margin-bottom: 22px;
}


/* Website Discovery stable final e-signature layout */
.wd-final-signature-mount {
  display: none;
  width: 100%;
  margin-top: 18px;
  margin-bottom: 18px;
}

body.wd-final-step-active .wd-final-signature-mount {
  display: block !important;
}

.wd-final-signature-mount #wdESignCard {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px 0;
}

.wd-final-signature-mount .wd-signature-canvas {
  width: 100% !important;
  min-height: 170px;
  display: block;
}

.wd-form-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
}

.wd-form-actions .wd-btn,
.wd-form-actions button,
.wd-form-actions a {
  width: auto !important;
  min-width: 90px;
  height: auto !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
}

/* CLIENT_DISCOVERY_CORPORATE_UI_START */

/* Inherits the active app font. No font override is declared here. */

:root {
  --wd-ui-bg: #f4f7fb;
  --wd-ui-surface: #ffffff;
  --wd-ui-soft: #f8fafc;
  --wd-ui-deep: #0f172a;
  --wd-ui-blue: #1d4ed8;
  --wd-ui-blue-dark: #172554;
  --wd-ui-cyan: #0ea5e9;
  --wd-ui-green: #059669;
  --wd-ui-red: #dc2626;
  --wd-ui-text: #0f172a;
  --wd-ui-muted: #64748b;
  --wd-ui-border: rgba(15,23,42,.10);
  --wd-ui-border-strong: rgba(15,23,42,.16);
  --wd-ui-shadow-lg: 0 24px 70px rgba(15,23,42,.13);
  --wd-ui-shadow-md: 0 14px 34px rgba(15,23,42,.10);
  --wd-ui-radius-xl: 28px;
  --wd-ui-radius-lg: 18px;
  --wd-ui-ring: 0 0 0 4px rgba(29,78,216,.13);
}

.wd-client-body {
  min-height: 100vh;
  margin: 0;
  color: var(--wd-ui-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(29,78,216,.18), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(14,165,233,.16), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 50%, #ffffff 100%);
}

.wd-client-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: auto;
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.wd-client-sidebar {
  position: sticky;
  top: 24px;
  height: auto;
  min-height: calc(100vh - 64px);
  padding: 30px;
  border-radius: var(--wd-ui-radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(14,165,233,.34), transparent 30%),
    linear-gradient(155deg, #0f172a 0%, #172554 55%, #1d4ed8 100%);
  box-shadow: var(--wd-ui-shadow-lg);
  overflow: hidden;
}

.wd-client-sidebar:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.wd-client-brand,
.wd-brand-block,
.wd-progress-card,
.wd-step-list {
  position: relative;
  z-index: 1;
}

.wd-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.wd-client-brand h1,
.wd-brand-block h2 {
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.04em;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

.wd-client-brand p,
.wd-brand-block p {
  color: rgba(255,255,255,.78);
}

.wd-step-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.wd-step-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.76);
  transition: .18s ease;
}

.wd-step-list li span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.wd-step-list li.active,
.wd-step-list li:hover {
  color: #fff;
  border-color: rgba(255,255,255,.23);
  background: rgba(255,255,255,.12);
  transform: translateX(3px);
}

.wd-step-list li.active span {
  color: #172554;
  background: #fff;
}

.wd-progress-card,
.wd-progress-ring {
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.11);
  color: #fff;
}

.wd-progress-card strong,
.wd-progress-ring span {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.wd-progress-card span,
.wd-progress-ring small {
  color: rgba(255,255,255,.76);
}

.wd-client-main {
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 28px;
  border: 1px solid var(--wd-ui-border);
  border-radius: var(--wd-ui-radius-xl);
  background: rgba(255,255,255,.88);
  box-shadow: var(--wd-ui-shadow-lg);
  backdrop-filter: blur(16px);
}

.wd-client-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.wd-client-header h1 {
  margin: 0 0 6px;
  color: var(--wd-ui-text);
  letter-spacing: -.04em;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
}

.wd-client-header p {
  margin: 0;
  color: var(--wd-ui-muted);
}

.wd-save-state {
  border-radius: 999px;
  border: 1px solid var(--wd-ui-border);
  background: #fff;
  box-shadow: var(--wd-ui-shadow-md);
}

.wd-step-panel,
.wd-review-box,
.wd-esign-card,
.wd-thankyou-card,
.wd-brief-card,
.wd-answer-item {
  border: 1px solid var(--wd-ui-border);
  border-radius: var(--wd-ui-radius-lg);
  background: var(--wd-ui-surface);
  box-shadow: var(--wd-ui-shadow-md);
}

.wd-step-panel {
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 18px;
}

.wd-step-panel h2,
.wd-portal-list h1,
.wd-thankyou-card h1 {
  margin-top: 0;
  color: var(--wd-ui-text);
  letter-spacing: -.035em;
  font-weight: 900;
}

.wd-step-panel label {
  display: block;
  margin-bottom: 18px;
  color: #1e293b;
  font-weight: 800;
}

.wd-step-panel input:not([type="checkbox"]):not([type="file"]),
.wd-step-panel textarea,
.wd-step-panel select,
.wd-esign-card input:not([type="checkbox"]),
.wd-admin-ui .form-control {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--wd-ui-border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--wd-ui-text);
  box-shadow: inset 0 1px 0 rgba(15,23,42,.03);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.wd-step-panel input:not([type="checkbox"]):not([type="file"]),
.wd-step-panel select,
.wd-esign-card input:not([type="checkbox"]) {
  min-height: 46px;
  padding: 11px 13px;
}

.wd-step-panel textarea,
.wd-admin-ui textarea.form-control {
  padding: 12px 13px;
  line-height: 1.55;
}

.wd-step-panel input:focus,
.wd-step-panel textarea:focus,
.wd-step-panel select:focus,
.wd-esign-card input:focus,
.wd-admin-ui .form-control:focus {
  outline: none;
  border-color: rgba(29,78,216,.68);
  box-shadow: var(--wd-ui-ring);
}

.wd-form-grid,
.wd-field-grid,
.wd-field-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wd-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.wd-check-grid label,
.wd-confirm {
  border: 1px solid var(--wd-ui-border);
  border-radius: 16px;
  background: var(--wd-ui-soft);
}

.wd-upload-box {
  border: 2px dashed rgba(29,78,216,.26);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.wd-review-box,
.wd-esign-card {
  padding: 22px;
  margin-top: 20px;
}

.wd-esign-card {
  border-color: rgba(29,78,216,.20);
  background: linear-gradient(180deg, rgba(239,246,255,.96), #fff 62%);
}

.wd-signature-pad-wrap {
  min-height: 210px;
  margin: 12px 0;
  border: 1px dashed rgba(29,78,216,.42);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.wd-signature-canvas {
  display: block;
  width: 100%;
  min-height: 210px;
}

.wd-form-actions {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--wd-ui-shadow-md);
  backdrop-filter: blur(16px);
  z-index: 8;
}

.wd-btn,
.wd-admin-ui .btn {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.wd-btn:hover,
.wd-admin-ui .btn:hover {
  transform: translateY(-1px);
}

.wd-btn.primary,
.wd-btn.success,
.wd-admin-ui .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--wd-ui-blue), var(--wd-ui-cyan));
  box-shadow: 0 14px 30px rgba(29,78,216,.25);
}

.wd-btn.secondary,
.wd-admin-ui .btn-default {
  color: var(--wd-ui-text);
  border: 1px solid var(--wd-ui-border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.wd-admin-ui h1,
.wd-admin-ui h2,
.wd-admin-ui h3,
.wd-admin-ui h4 {
  color: var(--wd-ui-text);
  letter-spacing: -.03em;
  font-weight: 900;
}

.wd-admin-ui .panel_s,
.wd-admin-ui .panel-body,
.wd-admin-ui .table-responsive,
.wd-admin-ui .well,
.wd-panel,
.wd-side-card,
.wd-stat-card {
  border-radius: var(--wd-ui-radius-lg);
}

.wd-admin-ui .panel_s,
.wd-panel,
.wd-side-card,
.wd-stat-card {
  border: 1px solid var(--wd-ui-border);
  box-shadow: var(--wd-ui-shadow-md);
  overflow: hidden;
}

.wd-admin-ui .panel-body {
  padding: 24px;
}

.wd-admin-ui .table > thead > tr > th {
  border-bottom: 1px solid var(--wd-ui-border);
  color: var(--wd-ui-muted);
  background: var(--wd-ui-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 900;
}

.wd-admin-ui .table > tbody > tr > td {
  vertical-align: middle;
  border-top: 1px solid rgba(15,23,42,.07);
}

.wd-admin-ui .table > tbody > tr:hover > td {
  background: rgba(29,78,216,.035);
}

.wd-admin-ui .label {
  border-radius: 999px;
  padding: .42em .72em;
  font-weight: 800;
}

.wd-admin-ui code {
  padding: 5px 8px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #eff6ff;
}

.wd-admin-ui .btn-danger {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--wd-ui-red), #ef4444);
}

.wd-admin-ui .btn-info {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0369a1, var(--wd-ui-cyan));
}

.wd-schema-json-field {
  min-height: 420px;
  line-height: 1.55;
}

.wd-portal-list,
.wd-thankyou {
  width: min(1040px, calc(100% - 32px));
  margin: 36px auto;
}

.wd-brief-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.wd-brief-card {
  display: block;
  padding: 22px;
  color: var(--wd-ui-text);
  text-decoration: none;
}

.wd-brief-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29,78,216,.28);
  box-shadow: var(--wd-ui-shadow-lg);
  text-decoration: none;
}

.wd-thankyou-card {
  max-width: 720px;
  margin: 70px auto;
  padding: 38px;
  text-align: center;
}

.wd-checkmark {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--wd-ui-green), #14b8a6);
  box-shadow: 0 18px 40px rgba(5,150,105,.24);
  font-size: 34px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .wd-client-shell {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .wd-client-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .wd-form-grid,
  .wd-field-grid,
  .wd-field-grid.two {
    grid-template-columns: 1fr;
  }

  .wd-form-actions {
    position: static;
    flex-wrap: wrap;
  }

  .wd-form-actions .wd-btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 640px) {
  .wd-client-shell,
  .wd-portal-list,
  .wd-thankyou {
    width: min(100% - 18px, 100%);
  }

  .wd-client-main,
  .wd-client-sidebar,
  .wd-step-panel,
  .wd-thankyou-card {
    padding: 18px;
    border-radius: 20px;
  }
}

/* CLIENT_DISCOVERY_CORPORATE_UI_END */


/* CLIENT_DISCOVERY_PUBLIC_VISITOR_START */
.wd-public-start-shell{width:min(1180px,calc(100% - 32px));margin:40px auto;display:grid;grid-template-columns:minmax(280px,440px) minmax(0,1fr);gap:24px;align-items:start}.wd-public-start-hero{position:sticky;top:28px;border-radius:28px;padding:34px;color:#fff;background:radial-gradient(circle at 18% 0%,rgba(14,165,233,.32),transparent 34%),linear-gradient(155deg,#0f172a 0%,#172554 55%,#1d4ed8 100%);box-shadow:0 24px 70px rgba(15,23,42,.14)}.wd-public-start-hero h1{margin:0 0 14px;color:#fff;font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.04em}.wd-public-start-hero p{color:rgba(255,255,255,.82);font-size:16px;line-height:1.65}.wd-public-start-points{display:grid;gap:10px;margin-top:24px}.wd-public-start-points span{display:block;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.10);padding:12px 14px;color:#fff}.wd-public-start-card{border:1px solid rgba(15,23,42,.10);border-radius:28px;background:rgba(255,255,255,.92);box-shadow:0 24px 70px rgba(15,23,42,.13);padding:30px}.wd-public-start-card h2{margin-top:0;font-size:28px;font-weight:900;letter-spacing:-.03em}.wd-public-start-card label{display:block;margin-bottom:16px;font-weight:800;color:#1e293b}.wd-public-start-card input:not([type=checkbox]),.wd-public-start-card textarea{width:100%;margin-top:8px;border:1px solid rgba(15,23,42,.16);border-radius:14px;background:#fff;color:#0f172a;padding:12px 13px;box-shadow:inset 0 1px 0 rgba(15,23,42,.03)}.wd-public-start-consent{margin-top:14px}.wd-public-start-submit{width:100%;margin-top:10px;justify-content:center}@media(max-width:900px){.wd-public-start-shell{grid-template-columns:1fr}.wd-public-start-hero{position:relative;top:auto}}
/* CLIENT_DISCOVERY_PUBLIC_VISITOR_END */


/* CLIENT_DISCOVERY_FLOW_FIX_V2_START */
.wd-step-panel.active { display: block !important; }
.wd-client-main .wd-step-panel[style*="display: block"] { display: block !important; }
.wd-public-start-shell{width:min(1160px,calc(100% - 32px));margin:34px auto;display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:24px;align-items:start}.wd-public-start-hero,.wd-public-start-card{border-radius:28px;box-shadow:0 24px 70px rgba(15,23,42,.13)}.wd-public-start-hero{padding:34px;color:#fff;background:linear-gradient(155deg,#0f172a 0%,#172554 55%,#1d4ed8 100%)}.wd-public-start-hero h1{font-size:clamp(30px,3vw,46px);line-height:1.05;margin:10px 0}.wd-public-start-points{display:grid;gap:10px;margin-top:22px}.wd-public-start-points span{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18)}.wd-public-start-card{padding:30px;background:#fff;border:1px solid rgba(15,23,42,.10)}.wd-public-start-submit{width:100%;justify-content:center;margin-top:12px}@media(max-width:900px){.wd-public-start-shell{grid-template-columns:1fr}}
/* CLIENT_DISCOVERY_FLOW_FIX_V2_END */

/* CLIENT_DISCOVERY_COMPANIES_HOUSE_UI_START */

.wd-companies-house-card {
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 22px;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 38%), linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.wd-ch-heading {
  margin-bottom: 16px;
}

.wd-ch-heading span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wd-ch-heading strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.wd-ch-heading small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.wd-ch-search-label {
  display: block;
  margin-bottom: 10px;
  color: #1e293b;
  font-weight: 800;
}

.wd-ch-search-label input {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
}

.wd-ch-search-label input:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.68);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.13);
}

.wd-ch-status {
  min-height: 20px;
  margin: 8px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.wd-ch-status[data-state="loading"] {
  color: #1d4ed8;
}

.wd-ch-status[data-state="selected"] {
  color: #059669;
}

.wd-ch-status[data-state="error"] {
  color: #dc2626;
}

.wd-ch-results {
  display: grid;
  gap: 8px;
}

.wd-ch-result {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.wd-ch-result:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.wd-ch-result strong,
.wd-ch-result span,
.wd-ch-result small {
  display: block;
}

.wd-ch-result strong {
  color: #0f172a;
  font-weight: 900;
}

.wd-ch-result span {
  margin-top: 3px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.wd-ch-result small {
  margin-top: 3px;
  color: #64748b;
}

/* CLIENT_DISCOVERY_COMPANIES_HOUSE_UI_END */
