:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #162033;
  --muted: #687386;
  --line: #dfe5ee;
  --primary: #3457d5;
  --primary-dark: #2844a9;
  --primary-soft: #eef2ff;
  --success: #14805e;
  --success-soft: #e9f8f1;
  --warning: #9a6700;
  --warning-soft: #fff6dc;
  --danger: #b4233c;
  --danger-soft: #fff0f2;
  --shadow: 0 18px 50px rgba(23, 35, 61, .08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top right, #eef2ff 0, transparent 32rem), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1280px)/2)); background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(223,229,238,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--primary); color: white; font-weight: 800; box-shadow: 0 10px 24px rgba(52,87,213,.24); }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.page-shell { width: min(1280px, calc(100% - 32px)); margin: 34px auto 70px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 0 20px 30px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 38px; background: linear-gradient(135deg, #172554, #3457d5); color: white; border-radius: 28px; box-shadow: var(--shadow); }
.hero h1 { max-width: 760px; margin: 10px 0 10px; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.hero p { max-width: 720px; margin: 0; color: #dfe7ff; font-size: 17px; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--primary); }
.hero .eyebrow { color: #c7d2fe; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 16px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: -.025em; }
.section-heading h2, .panel-header h1 { margin: 0; }
.section-heading p, .panel-header p { margin: 6px 0 0; color: var(--muted); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 17px; font-weight: 750; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 9px 20px rgba(52,87,213,.18); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: white; color: var(--text); border-color: var(--line); }
.button-secondary:hover { border-color: #bfc9d8; background: var(--surface-2); }
.button-ghost { background: transparent; color: var(--muted); }
.button-small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.model-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(23,35,61,.04); }
.model-card-top, .split-header, .subheading, .bulkbar, .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.file-badge { display: inline-flex; padding: 7px 9px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.model-card h3 { margin: 20px 0 4px; font-size: 20px; }
.muted { color: var(--muted); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrics { display: flex; gap: 20px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.metrics strong { color: var(--text); font-size: 17px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.link-danger { border: 0; background: transparent; color: var(--danger); padding: 0; font-weight: 700; }
.empty-state { max-width: 720px; margin: 60px auto; text-align: center; padding: 54px; background: white; border: 1px dashed #c9d2df; border-radius: 26px; }
.empty-symbol { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: var(--primary-soft); color: var(--primary); font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 860px; margin: 0 auto 26px; position: relative; }
.steps::before { content: ""; height: 2px; background: var(--line); position: absolute; left: 10%; right: 10%; top: 18px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #8993a3; position: relative; z-index: 1; font-size: 12px; }
.step span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font-weight: 900; }
.step.active, .step.done { color: var(--primary); }
.step.active span, .step.done span { border-color: var(--primary); background: var(--primary); color: white; }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.main-panel { min-width: 0; }
.side-panel { position: sticky; top: 100px; }
.side-panel h3 { margin-top: 0; }
.side-panel p { color: var(--muted); }
.panel-header { margin-bottom: 26px; }
.panel-header h1 { font-size: clamp(25px, 3vw, 37px); }
.document-pill { min-width: 230px; max-width: 360px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.document-pill strong, .document-pill span { display: block; }
.document-pill span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-weight: 750; }
.field span small { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="search"], textarea { width: 100%; border: 1px solid #ccd5e2; border-radius: 12px; padding: 12px 13px; background: white; color: var(--text); outline: none; transition: .15s; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea { resize: vertical; min-height: 120px; }
.upload-zone { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 28px; border: 2px dashed #bdc8d8; border-radius: 18px; background: var(--surface-2); cursor: pointer; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-title { font-size: 18px; font-weight: 850; }
.upload-help { color: var(--muted); font-size: 13px; }
.upload-zone strong { margin-top: 10px; color: var(--primary); }
.upload-zone.compact { min-height: 150px; }
.tip { margin-top: 18px; padding: 14px; background: var(--warning-soft); color: #74510a; border-radius: 12px; font-size: 13px; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 13px 15px; border-radius: 12px; font-weight: 650; }
.flash-success { color: var(--success); background: var(--success-soft); }
.flash-warning { color: var(--warning); background: var(--warning-soft); }
.flash-error { color: var(--danger); background: var(--danger-soft); }
.variables-toolbar { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; }
.search-field { flex: 1; display: grid; gap: 6px; font-weight: 750; }
.variable-workspace { display: grid; grid-template-columns: minmax(420px, .9fr) minmax(0, 1.1fr); gap: 16px; }
.candidate-panel, .preview-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.subheading { padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.subheading h2 { margin: 0; font-size: 16px; }
.subheading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.subheading > span { color: var(--muted); font-size: 12px; }
.candidate-list { max-height: 520px; overflow: auto; }
.candidate-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(150px, .9fr); align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid #edf0f5; }
.candidate-row:hover { background: #fafbfe; }
.candidate-source strong, .candidate-source small { display: block; }
.candidate-source small { color: var(--muted); font-size: 11px; }
.candidate-key { padding: 8px 9px !important; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview-panel pre { margin: 0; padding: 18px; height: 520px; overflow: auto; white-space: pre-wrap; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: #344054; background: white; }
.manual-section { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.manual-rows { display: grid; gap: 9px; padding: 14px; }
.manual-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; }
.remove-manual { border: 0; background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 0 12px; font-weight: 700; }
.sticky-footer { position: sticky; bottom: 0; margin: 20px -28px -28px; padding: 18px 28px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 0 0 var(--radius) var(--radius); }
.header-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.header-choice label { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.header-choice strong, .header-choice small { display: block; }
.header-choice small { color: var(--muted); margin-top: 3px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.variable-order { margin: 0; padding-left: 22px; display: grid; gap: 11px; }
.variable-order li code, .variable-order li small { display: block; }
.variable-order small { color: var(--muted); margin-top: 2px; }
.review-panel { padding: 0; overflow: hidden; }
.review-panel > .panel-header { padding: 28px 28px 0; }
.bulkbar { padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.select-all { font-weight: 750; }
.bulk-actions { display: flex; gap: 8px; margin-left: auto; }
.table-wrap { overflow: auto; max-height: 65vh; }
.review-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; font-size: 13px; }
.review-table th { position: sticky; top: 0; z-index: 2; text-align: left; padding: 11px 12px; background: #f7f9fc; border-bottom: 1px solid var(--line); color: #526071; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.review-table td { padding: 11px 12px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.review-table tbody tr:hover { background: #fbfcff; }
.check-col { width: 40px; }
.cell-value { display: block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.missing-value { color: var(--danger); font-size: 11px; font-weight: 750; background: var(--danger-soft); padding: 4px 7px; border-radius: 7px; white-space: nowrap; }
.status { white-space: nowrap; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status-ok { background: var(--success-soft); color: var(--success); }
.status-warning { background: var(--warning-soft); color: var(--warning); }
.actions-cell { white-space: nowrap; }
.actions-cell a { color: var(--primary); font-weight: 750; margin-right: 9px; }
.danger-zone { padding: 18px 28px; }
.narrow-panel { max-width: 760px; margin: 0 auto; }
code { padding: 2px 5px; border-radius: 6px; background: #edf1f7; color: #293f8f; font-size: .92em; }
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .variable-workspace { grid-template-columns: 1fr; }
  .preview-panel pre { height: 360px; }
}
@media (max-width: 680px) {
  .page-shell { width: min(100% - 20px, 1280px); margin-top: 18px; }
  .topbar { height: 68px; padding: 0 12px; }
  .brand small { display: none; }
  .brand strong { font-size: 13px; }
  .hero { padding: 26px; align-items: stretch; flex-direction: column; }
  .panel { padding: 20px; border-radius: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { margin-bottom: 18px; }
  .step strong { font-size: 10px; }
  .split-header, .subheading, .bulkbar, .form-footer { align-items: stretch; flex-direction: column; }
  .document-pill { max-width: none; width: 100%; }
  .variables-toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .candidate-row { grid-template-columns: auto 1fr; }
  .candidate-key { grid-column: 2; }
  .manual-row { grid-template-columns: 1fr; }
  .header-choice { grid-template-columns: 1fr; }
  .sticky-footer { margin: 18px -20px -20px; padding: 15px 20px; }
  .bulk-actions { width: 100%; overflow: auto; margin: 0; }
  .bulk-actions .button { flex: 0 0 auto; }
  .review-panel > .panel-header { padding: 20px 20px 0; }
}

/* PATCH_INLINE_REVIEW_START */

.optional-data-note {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid #bfd0f7;
  border-radius: 13px;
  background: var(--primary-soft);
  color: #253d88;
}

.optional-data-note span {
  color: #52658e;
  font-size: 13px;
}

.review-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.review-savebar strong,
.review-savebar span {
  display: block;
}

.review-savebar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.inline-review-wrap {
  max-height: 68vh;
}

.inline-review-table {
  min-width: max(1050px, 100%);
}

.inline-cell {
  min-width: 185px;
  padding: 7px 8px !important;
}

.inline-cell-input {
  min-width: 170px;
  padding: 9px 10px !important;
  border-radius: 9px !important;
  font-size: 12px;
  background: #fff;
}

.inline-cell-input.is-empty {
  border-color: #efc3c3;
  background: #fff8f8;
}

.inline-cell-input::placeholder {
  color: #b54b4b;
}

.row-number {
  font-weight: 850;
  color: var(--muted);
}

.inline-actions {
  min-width: 116px;
}

.inline-actions button {
  border: 0;
  padding: 4px 5px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.inline-actions button:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .review-savebar {
    align-items: stretch;
    flex-direction: column;
  }

  .review-savebar .button {
    width: 100%;
  }
}

/* PATCH_INLINE_REVIEW_END */

/* PATCH_PRIMARY_VARIABLE_START */

.primary-variable-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 24px 18px;
}

.primary-variable-guide > div {
  padding: 14px 16px;
  border: 1px solid #cbd7f5;
  border-radius: 13px;
  background: #f6f8ff;
}

.primary-variable-guide strong,
.primary-variable-guide span {
  display: block;
}

.primary-variable-guide strong {
  color: #263e8b;
  font-size: 13px;
}

.primary-variable-guide span {
  margin-top: 4px;
  color: #627093;
  font-size: 12px;
  line-height: 1.45;
}

.candidate-row {
  grid-template-columns:
    auto
    minmax(130px, 1fr)
    minmax(145px, .8fr)
    minmax(175px, .75fr);
  transition:
    background .16s ease,
    box-shadow .16s ease;
}

.candidate-row.is-primary {
  background: #f3f6ff;
  box-shadow:
    inset 4px 0 0 #315cd6;
}

.primary-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid #dfe5f2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.primary-choice:hover {
  border-color: #aebfec;
}

.primary-choice input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: #315cd6;
}

.primary-choice input:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.primary-choice span,
.primary-choice strong,
.primary-choice small {
  display: block;
}

.primary-choice strong {
  color: #263e8b;
  font-size: 12px;
}

.primary-choice small {
  margin-top: 2px;
  color: #77829d;
  font-size: 10px;
  line-height: 1.3;
}

.candidate-row.is-primary .primary-choice {
  border-color: #9eb2e8;
  background: #fff;
}

.no-markers-message {
  margin: 0 24px 24px;
  padding: 24px;
  border: 1px solid #efc3c3;
  border-radius: 16px;
  background: #fff8f8;
}

.no-markers-message h2 {
  margin-top: 0;
}

.no-markers-message p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .candidate-row {
    grid-template-columns:
      auto
      minmax(0, 1fr);
  }

  .candidate-key,
  .primary-choice {
    grid-column: 2;
  }

  .primary-choice {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .primary-variable-guide {
    grid-template-columns: 1fr;
    margin:
      0
      16px
      16px;
  }
}

/* PATCH_PRIMARY_VARIABLE_END */

/* PATCH_RPCLOUD_AUTH_START */

.rp-public-body {
  min-height: 100vh;
  color: #e9f0ff;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(0, 199, 255, .16),
      transparent 26rem
    ),
    radial-gradient(
      circle at 88% 40%,
      rgba(108, 80, 255, .15),
      transparent 32rem
    ),
    #071425;
}

.rp-public-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, .025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .025) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .9),
      transparent
    );
}

.rp-public-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.rp-public-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rp-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rp-public-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter:
    drop-shadow(
      0 12px 22px
      rgba(0, 192, 255, .18)
    );
}

.rp-public-brand strong,
.rp-public-brand small {
  display: block;
}

.rp-public-brand strong {
  color: #f7faff;
  font-size: 18px;
  letter-spacing: .03em;
}

.rp-public-brand small {
  color: #8fa3c2;
  font-size: 11px;
}

.rp-public-nav-actions,
.rp-hero-actions,
.rp-admin-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rp-public-link {
  color: #aebbd1;
  font-size: 13px;
  font-weight: 700;
}

.rp-public-link:hover {
  color: #fff;
}

.rp-public-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  color: #061224;
  background:
    linear-gradient(
      135deg,
      #21c8ff,
      #6b64ff
    );
  box-shadow:
    0 14px 32px
    rgba(18, 177, 255, .18);
  font-weight: 850;
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.rp-public-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 17px 38px
    rgba(18, 177, 255, .25);
}

.rp-public-button-large {
  min-height: 52px;
  padding: 13px 24px;
}

.rp-landing-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(380px, .95fr);
  align-items: center;
  gap: 70px;
  padding: 55px 0 65px;
}

.rp-kicker,
.rp-auth-eyebrow {
  display: inline-block;
  color: #2bd4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rp-landing-copy h1 {
  max-width: 680px;
  margin: 18px 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.rp-landing-copy > p {
  max-width: 650px;
  margin: 0;
  color: #aebbd1;
  font-size: 17px;
  line-height: 1.75;
}

.rp-hero-actions {
  margin-top: 32px;
}

.rp-hero-actions > span {
  color: #7f93b4;
  font-size: 12px;
}

.rp-product-preview {
  position: relative;
}

.rp-product-preview::before {
  content: "";
  position: absolute;
  inset: 15% 8%;
  border-radius: 50%;
  background:
    rgba(0, 199, 255, .22);
  filter: blur(70px);
}

.rp-preview-window {
  position: relative;
  overflow: hidden;
  border:
    1px solid
    rgba(130, 166, 220, .25);
  border-radius: 26px;
  background:
    rgba(12, 27, 48, .8);
  box-shadow:
    0 40px 90px
    rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
  transform:
    perspective(1100px)
    rotateY(-5deg)
    rotateX(2deg);
}

.rp-preview-window-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom:
    1px solid
    rgba(255, 255, 255, .07);
}

.rp-preview-window-top > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f4868;
}

.rp-preview-window-top small {
  margin-left: auto;
  color: #6f86a7;
}

.rp-preview-content {
  min-height: 390px;
  padding: 34px;
}

.rp-preview-logo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border:
    1px solid
    rgba(63, 208, 255, .25);
  border-radius: 21px;
  background:
    rgba(7, 19, 36, .8);
}

.rp-preview-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.rp-preview-lines {
  margin-top: 28px;
}

.rp-preview-lines strong {
  display: block;
  margin-bottom: 17px;
  color: #f4f7ff;
  font-size: 20px;
}

.rp-preview-lines span {
  width: 100%;
  height: 9px;
  display: block;
  margin-top: 10px;
  border-radius: 8px;
  background:
    rgba(138, 160, 195, .16);
}

.rp-preview-lines span.short {
  width: 62%;
}

.rp-preview-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 42px;
}

.rp-preview-steps div {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #6e82a1;
  font-size: 9px;
  font-weight: 800;
}

.rp-preview-steps b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border:
    1px solid
    rgba(125, 151, 190, .25);
  border-radius: 10px;
  color: #8aa1c3;
  background:
    rgba(255, 255, 255, .035);
}

.rp-preview-steps .active {
  color: #34ccff;
}

.rp-preview-steps .active b {
  border-color:
    rgba(43, 212, 255, .5);
  color: #061224;
  background: #2bd4ff;
}

.rp-feature-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 70px;
}

.rp-feature-grid article {
  padding: 26px;
  border:
    1px solid
    rgba(123, 153, 199, .14);
  border-radius: 19px;
  background:
    rgba(15, 31, 53, .6);
}

.rp-feature-grid article > span {
  color: #2bd4ff;
  font-size: 11px;
  font-weight: 900;
}

.rp-feature-grid h2 {
  margin: 14px 0 7px;
  color: #f5f8ff;
  font-size: 18px;
}

.rp-feature-grid p {
  margin: 0;
  color: #8fa2bf;
  font-size: 13px;
  line-height: 1.7;
}

.rp-public-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 38px;
  border-top:
    1px solid
    rgba(125, 153, 195, .12);
  color: #647b9e;
  font-size: 12px;
}

.rp-auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(360px, .9fr)
    minmax(480px, 1.1fr);
}

.rp-auth-presentation {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    clamp(28px, 5vw, 70px);
  border-right:
    1px solid
    rgba(127, 154, 198, .12);
}

.rp-auth-presentation h1 {
  max-width: 620px;
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.rp-auth-presentation p,
.rp-auth-presentation > small {
  color: #8195b5;
}

.rp-auth-card {
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    rgba(246, 249, 255, .98);
}

.rp-auth-card-inner {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid #dde5f1;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 25px 70px
    rgba(7, 20, 39, .13);
}

.rp-auth-card h2 {
  margin: 9px 0 6px;
  color: #142137;
  font-size: 31px;
}

.rp-auth-description {
  margin: 0 0 25px;
  color: #6d788b;
}

.rp-auth-form {
  display: grid;
  gap: 17px;
}

.rp-auth-form label,
.rp-admin-create-form label,
.rp-user-edit-form label {
  display: grid;
  gap: 7px;
}

.rp-auth-form label > span,
.rp-admin-create-form label > span,
.rp-user-edit-form label > span {
  color: #39465c;
  font-size: 12px;
  font-weight: 800;
}

.rp-auth-form input,
.rp-admin-create-form input,
.rp-user-edit-form input,
.rp-user-password-form input {
  width: 100%;
  min-height: 47px;
  border: 1px solid #d9e1ed;
  border-radius: 11px;
  padding: 10px 12px;
  color: #152238;
  background: #fbfcfe;
  outline: none;
}

.rp-auth-form input:focus,
.rp-admin-create-form input:focus,
.rp-user-edit-form input:focus,
.rp-user-password-form input:focus {
  border-color: #5478e7;
  box-shadow:
    0 0 0 3px
    rgba(84, 120, 231, .12);
}

.rp-auth-submit {
  width: 100%;
  margin-top: 3px;
}

.rp-auth-back {
  display: block;
  margin-top: 20px;
  color: #718099;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.rp-flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.rp-admin-shell {
  min-height: 100vh;
  color: #162033;
  background:
    radial-gradient(
      circle at top right,
      #edf2ff,
      transparent 35rem
    ),
    #f4f7fb;
}

.rp-admin-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding:
    12px
    max(
      24px,
      calc((100vw - 1260px) / 2)
    );
  border-bottom: 1px solid #dde4ef;
  background:
    rgba(255, 255, 255, .93);
  backdrop-filter: blur(13px);
}

.rp-admin-header .rp-public-brand strong {
  color: #152238;
}

.rp-admin-header .rp-public-brand small {
  color: #738099;
}

.rp-admin-current-user {
  display: grid;
}

.rp-admin-current-user small {
  color: #8893a5;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rp-admin-current-user strong {
  color: #2b374b;
  font-size: 12px;
}

.rp-admin-outline-button,
.rp-admin-logout,
.rp-admin-small-button,
.rp-admin-small-primary,
.rp-admin-delete {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.rp-admin-outline-button,
.rp-admin-small-button {
  border: 1px solid #d6deea;
  color: #34425a;
  background: #fff;
}

.rp-admin-logout {
  border: 0;
  color: #637087;
  background: transparent;
}

.rp-admin-small-primary {
  border: 0;
  color: #fff;
  background: #3457d5;
}

.rp-admin-delete {
  border: 0;
  color: #b4233c;
  background: #fff0f2;
}

.rp-admin-delete:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.rp-admin-content {
  width: min(1260px, calc(100% - 32px));
  margin: 34px auto 80px;
}

.rp-admin-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}

.rp-admin-title h1 {
  margin: 7px 0 5px;
  font-size: 38px;
}

.rp-admin-title p {
  max-width: 680px;
  margin: 0;
  color: #69758a;
}

.rp-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 105px);
  gap: 10px;
}

.rp-admin-stats > div {
  display: grid;
  justify-items: center;
  padding: 14px 10px;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  background: #fff;
}

.rp-admin-stats strong {
  color: #263f97;
  font-size: 24px;
}

.rp-admin-stats span {
  color: #7d899c;
  font-size: 10px;
}

.rp-admin-create-card,
.rp-admin-users-section {
  padding: 25px;
  border: 1px solid #dfe5ee;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 12px 38px
    rgba(28, 43, 70, .05);
}

.rp-admin-users-section {
  margin-top: 20px;
}

.rp-admin-section-heading h2 {
  margin: 0;
}

.rp-admin-section-heading p {
  margin: 4px 0 0;
  color: #748095;
}

.rp-admin-create-form {
  display: grid;
  grid-template-columns:
    1.15fr
    .8fr
    1.15fr
    .9fr;
  align-items: end;
  gap: 13px;
  margin-top: 20px;
}

.rp-admin-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.rp-admin-checkbox input {
  width: 17px !important;
  min-height: auto !important;
  height: 17px;
}

.rp-user-list {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.rp-user-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(360px, .8fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: #fbfcfe;
}

.rp-user-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rp-user-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #20bffc,
      #5f59e8
    );
  font-size: 19px;
  font-weight: 900;
}

.rp-user-identity {
  min-width: 0;
}

.rp-user-identity > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.rp-user-identity h3 {
  margin: 0;
  font-size: 16px;
}

.rp-user-identity p {
  margin: 3px 0;
  color: #657288;
  font-size: 12px;
}

.rp-user-identity small {
  color: #9099aa;
  font-size: 10px;
}

.rp-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
}

.rp-badge-admin {
  color: #4338a7;
  background: #efedff;
}

.rp-badge-active {
  color: #14785a;
  background: #e8f8f1;
}

.rp-badge-disabled {
  color: #a13b4e;
  background: #fff0f2;
}

.rp-user-tools {
  display: grid;
  gap: 8px;
}

.rp-user-tools details {
  border: 1px solid #dde4ee;
  border-radius: 11px;
  background: #fff;
}

.rp-user-tools summary {
  padding: 10px 12px;
  color: #4a586e;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.rp-user-edit-form {
  display: grid;
  grid-template-columns:
    1fr
    .8fr
    1fr;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid #e8edf4;
}

.rp-user-edit-form .rp-admin-checkbox,
.rp-user-edit-form button {
  align-self: end;
}

.rp-user-password-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e8edf4;
}

.rp-user-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rp-user-action-row form {
  margin: 0;
}

.rp-app-topbar {
  height: auto;
  min-height: 76px;
  gap: 20px;
}

.rp-app-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.rp-app-navigation {
  display: flex;
  align-items: center;
  gap: 13px;
}

.rp-app-nav-link {
  color: #66738a;
  font-size: 12px;
  font-weight: 800;
}

.rp-app-nav-link:hover {
  color: #3457d5;
}

.rp-app-user {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 11px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
}

.rp-app-user > span {
  display: grid;
}

.rp-app-user > span small {
  color: #929bab;
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rp-app-user > span strong {
  max-width: 145px;
  overflow: hidden;
  color: #344158;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-app-user-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 40;
  width: 155px;
  display: none;
  padding: 7px;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #fff;
  box-shadow:
    0 16px 36px
    rgba(20, 33, 57, .13);
}

.rp-app-user:hover .rp-app-user-menu,
.rp-app-user:focus-within .rp-app-user-menu {
  display: grid;
}

.rp-app-user-menu a,
.rp-app-user-menu button {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 7px;
  padding: 8px;
  color: #536078;
  background: transparent;
  text-align: left;
  font-size: 11px;
  font-weight: 750;
}

.rp-app-user-menu a:hover,
.rp-app-user-menu button:hover {
  color: #2948b6;
  background: #f0f4ff;
}

.rp-app-user-menu form {
  margin: 0;
}

.rp-app-footer {
  display: grid;
  gap: 2px;
}

.rp-app-footer strong {
  color: #4d5a70;
}

.rp-app-footer span {
  color: #8993a4;
}

@media (max-width: 1000px) {

  .rp-landing-hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 70px;
  }

  .rp-product-preview {
    width: min(600px, 100%);
  }

  .rp-auth-layout {
    grid-template-columns: 1fr;
  }

  .rp-auth-presentation {
    min-height: auto;
    gap: 55px;
    padding-bottom: 50px;
  }

  .rp-auth-card {
    min-height: 590px;
  }

  .rp-admin-create-form {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .rp-user-card {
    grid-template-columns: 1fr;
  }

  .rp-app-navigation {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

}

@media (max-width: 720px) {

  .rp-public-shell {
    width: min(100% - 26px, 1180px);
  }

  .rp-public-nav {
    min-height: 80px;
  }

  .rp-public-nav-actions .rp-public-link {
    display: none;
  }

  .rp-public-brand img {
    width: 45px;
    height: 45px;
  }

  .rp-landing-hero {
    min-height: auto;
    padding: 55px 0;
  }

  .rp-landing-copy h1 {
    font-size: 41px;
  }

  .rp-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-feature-grid {
    grid-template-columns: 1fr;
  }

  .rp-public-footer {
    flex-direction: column;
  }

  .rp-auth-presentation {
    padding: 28px 22px 42px;
  }

  .rp-auth-presentation h1 {
    font-size: 37px;
  }

  .rp-auth-card {
    min-height: auto;
    padding: 22px 13px 50px;
  }

  .rp-auth-card-inner {
    padding: 26px 20px;
  }

  .rp-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rp-admin-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .rp-admin-title {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-admin-stats {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .rp-admin-create-form,
  .rp-user-edit-form {
    grid-template-columns: 1fr;
  }

  .rp-user-password-form {
    grid-template-columns: 1fr;
  }

  .rp-user-summary {
    align-items: flex-start;
  }

  .rp-app-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .rp-app-navigation {
    width: 100%;
    justify-content: flex-start;
  }

  .rp-app-user {
    margin-left: auto;
  }

}

@media (max-width: 500px) {

  .rp-public-nav-actions .rp-public-button {
    padding: 9px 12px;
    font-size: 11px;
  }

  .rp-public-brand span {
    display: none;
  }

  .rp-preview-content {
    min-height: 330px;
    padding: 25px 20px;
  }

  .rp-admin-stats {
    grid-template-columns: 1fr;
  }

  .rp-user-action-row {
    justify-content: stretch;
  }

  .rp-user-action-row form,
  .rp-user-action-row button {
    width: 100%;
  }

  .rp-app-nav-link {
    display: none;
  }

  .rp-app-user {
    margin-left: 0;
  }

}

/* PATCH_RPCLOUD_AUTH_END */

/* PATCH_RPCLOUD_AREAS_V3_START */

/*
 * O menu começa junto ao bloco do usuário,
 * sem o espaço que fazia as opções sumirem.
 */
.rp-app-user {
  cursor: default;
}

.rp-app-user-menu {
  top: calc(100% - 1px);
  right: 0;
  z-index: 100;
  width: 170px;
  padding-top: 9px;
  border-top-color: transparent;
}

.rp-app-user:hover .rp-app-user-menu,
.rp-app-user:focus .rp-app-user-menu,
.rp-app-user:focus-within .rp-app-user-menu,
.rp-app-user-menu:hover {
  display: grid;
}

/*
 * Etapas interativas da apresentação.
 */
.rp-preview-steps > div {
  padding: 7px 5px;
  border-radius: 11px;
  cursor: pointer;
  outline: none;
  transition:
    color .16s ease,
    background .16s ease,
    transform .16s ease;
}

.rp-preview-steps > div:hover,
.rp-preview-steps > div:focus-visible {
  color: #bcd0ee;
  background:
    rgba(255, 255, 255, .05);
  transform: translateY(-1px);
}

.rp-preview-steps > div:focus-visible {
  box-shadow:
    0 0 0 2px
    rgba(43, 212, 255, .45);
}

.rp-preview-step-detail {
  min-height: 72px;
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 14px 16px;
  border:
    1px solid
    rgba(43, 212, 255, .18);
  border-radius: 13px;
  background:
    rgba(5, 17, 34, .52);
}

.rp-preview-step-detail strong {
  color: #eaf5ff;
  font-size: 12px;
}

.rp-preview-step-detail span {
  color: #8298ba;
  font-size: 10px;
  line-height: 1.55;
}

/* PATCH_RPCLOUD_AREAS_V3_END */

/* PATCH_RPCLOUD_CUSTOM_IMPORT_START */

.import-structure-card {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f5f8ff
    );
  box-shadow:
    0 12px 35px
    rgba(21, 39, 70, .06);
}

.import-structure-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.import-structure-heading h1 {
  margin: 7px 0 6px;
}

.import-structure-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.import-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.import-variable-sequence {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(210px, 1fr)
    );
  gap: 10px;
}

.import-variable-chip {
  position: relative;
  display: grid;
  grid-template-columns:
    34px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  background: #fff;
}

.import-variable-chip.is-primary {
  border-color:
    rgba(55, 94, 210, .4);
  background:
    linear-gradient(
      135deg,
      #f7f9ff,
      #edf3ff
    );
}

.import-variable-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #5369c7;
  font-size: 12px;
  font-weight: 900;
}

.import-variable-chip code,
.import-variable-chip small {
  display: block;
}

.import-variable-chip code {
  overflow: hidden;
  color: #263553;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.import-variable-chip small {
  margin-top: 3px;
  overflow: hidden;
  color: #8590a2;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-variable-chip em {
  border-radius: 999px;
  padding: 4px 7px;
  color: #294bb1;
  background: #e8eeff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.import-order-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #59667c;
  background: #eef3fa;
  font-size: 12px;
  line-height: 1.6;
}

.import-order-alert strong {
  flex: 0 0 auto;
  color: #263553;
}

.import-wizard-layout {
  align-items: start;
}

.import-method-heading h2 {
  margin: 5px 0 0;
  font-size: 21px;
}

.import-method-tabs {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #edf1f7;
}

.import-method-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  color: #667287;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition:
    color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.import-method-tabs button:hover {
  color: #35435b;
}

.import-method-tabs button.is-active {
  color: #294bb1;
  background: #fff;
  box-shadow:
    0 5px 16px
    rgba(37, 57, 91, .1);
}

.import-mode-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: #fbfcfe;
}

.import-mode-panel[hidden] {
  display: none !important;
}

.import-mode-intro {
  display: grid;
  gap: 4px;
}

.import-mode-intro strong {
  color: #25334a;
  font-size: 15px;
}

.import-mode-intro span {
  color: #788497;
  font-size: 12px;
  line-height: 1.6;
}

.import-header-choice {
  margin: 0;
}

.import-paste-example {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
}

.import-paste-example > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7ecf3;
}

.import-paste-example > div > span {
  color: #43516a;
  font-size: 11px;
  font-weight: 850;
}

.import-paste-example pre {
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #28405e;
  background: #f6f9fd;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre;
}

.manual-entry-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-entry-wrap {
  overflow: auto;
  max-height: 520px;
  border: 1px solid #dce3ed;
  border-radius: 13px;
  background: #fff;
}

.manual-entry-table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
}

.manual-entry-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 185px;
  padding: 10px;
  border-bottom: 1px solid #dfe6ef;
  color: #536078;
  background: #f5f8fc;
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.manual-entry-table th span,
.manual-entry-table th em {
  display: block;
}

.manual-entry-table th em {
  margin-top: 3px;
  color: #4261c1;
  font-size: 8px;
  font-style: normal;
}

.manual-entry-table td {
  padding: 7px;
  border-bottom: 1px solid #edf0f5;
}

.manual-entry-table input {
  width: 100%;
  min-height: 39px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  padding: 7px 9px;
  color: #25334a;
  background: #fff;
  outline: none;
}

.manual-entry-table input:focus {
  border-color: #5574db;
  box-shadow:
    0 0 0 3px
    rgba(85, 116, 219, .12);
}

.manual-row-number,
.manual-row-index {
  width: 45px !important;
  min-width: 45px !important;
  color: #8c96a7;
  text-align: center !important;
}

.manual-row-actions {
  width: 90px !important;
  min-width: 90px !important;
}

.manual-remove-row {
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  color: #a83a4c;
  background: #fff0f2;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.manual-remove-row:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.blank-document-option {
  padding: 18px;
  border: 1px dashed #b9c6da;
  border-radius: 14px;
  background: #fff;
}

.blank-document-option strong {
  color: #263553;
  font-size: 16px;
}

.blank-document-option p {
  margin: 7px 0 15px;
  color: #748196;
  line-height: 1.65;
}

.blank-variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blank-variable-list span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #53627a;
  background: #eef2f8;
  font-size: 9px;
  font-weight: 800;
}

.import-example-order li {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

.import-example-order li:last-child {
  border-bottom: 0;
}

.import-example-order li > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.import-example-order li strong {
  border-radius: 999px;
  padding: 3px 6px;
  color: #3152b4;
  background: #eaf0ff;
  font-size: 8px;
  text-transform: uppercase;
}

.import-primary-tip {
  margin-top: 10px;
}

.import-primary-tip strong,
.tip strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 950px) {

  .import-structure-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .import-download-actions {
    width: 100%;
  }

  .import-download-actions .button {
    flex: 1;
  }

  .import-method-tabs {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {

  .import-structure-card {
    padding: 18px;
  }

  .import-variable-sequence {
    grid-template-columns: 1fr;
  }

  .import-order-alert {
    flex-direction: column;
  }

  .import-method-tabs {
    grid-template-columns: 1fr;
  }

  .import-download-actions {
    flex-direction: column;
  }

  .import-download-actions .button {
    width: 100%;
  }

  .import-mode-panel {
    padding: 15px;
  }

}

/* PATCH_RPCLOUD_CUSTOM_IMPORT_END */

/* PATCH_RPCLOUD_PRIMARY_VARIABLE_START */

.variable-definition-panel {
  overflow: visible;
}

.variable-page-header {
  margin-bottom: 18px;
}

.primary-variable-guide {
  display: grid;
  grid-template-columns:
    42px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 15px 16px;
  border:
    1px solid
    rgba(64, 94, 194, .25);
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      #f7f9ff,
      #eef3ff
    );
}

.primary-guide-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #4f67c8;
  font-size: 15px;
  font-weight: 900;
}

.primary-variable-guide strong,
.primary-variable-guide span {
  display: block;
}

.primary-variable-guide strong {
  color: #283652;
  font-size: 13px;
}

.primary-variable-guide span {
  margin-top: 3px;
  color: #708099;
  font-size: 11px;
  line-height: 1.55;
}

.primary-current-value {
  max-width: 230px;
  overflow: hidden;
  border-radius: 999px;
  padding: 7px 11px;
  color: #718097;
  background: #e3e8f1;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-current-value.has-primary {
  color: #284cb6;
  background: #dfe8ff;
}

.variable-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.variable-list-heading p {
  margin: 3px 0 0;
}

.primary-candidate-list {
  max-height: 620px;
}

.primary-candidate-row {
  display: grid;
  grid-template-columns:
    32px
    minmax(140px, 1fr)
    minmax(155px, .8fr)
    minmax(135px, .58fr);
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
  transition:
    background .15s ease,
    box-shadow .15s ease;
}

.primary-candidate-row:hover {
  background: #fafbfe;
}

.primary-candidate-row.is-selected {
  background: #fafcff;
}

.primary-candidate-row.is-primary {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      #f1f5ff,
      #fbfcff
    );
  box-shadow:
    inset 4px 0 0
    #526bd0;
}

.candidate-selection {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.candidate-selection input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.candidate-check-visual {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #bac4d4;
  border-radius: 6px;
  background: #fff;
}

.candidate-selection
input:checked
+ .candidate-check-visual {
  border-color: #536bd0;
  background: #536bd0;
}

.candidate-selection
input:checked
+ .candidate-check-visual::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.candidate-key-field {
  display: grid;
  gap: 4px;
}

.candidate-key-field > span {
  color: #7d899b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.candidate-key:disabled {
  color: #8994a5;
  background: #f1f3f7;
  cursor: not-allowed;
}

.primary-variable-choice {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.primary-variable-choice:hover {
  border-color: #8398dc;
}

.primary-variable-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.primary-radio-visual {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid #aeb9ca;
  border-radius: 50%;
  background: #fff;
}

.primary-variable-choice
input:checked
+ .primary-radio-visual {
  border-color: #536bd0;
}

.primary-variable-choice
input:checked
+ .primary-radio-visual::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #536bd0;
}

.primary-variable-choice:has(
  input:checked
) {
  border-color: #667ed6;
  background: #edf2ff;
  box-shadow:
    0 0 0 3px
    rgba(83, 107, 208, .09);
}

.primary-radio-label strong,
.primary-radio-label small {
  display: block;
}

.primary-radio-label strong {
  color: #35435a;
  font-size: 10px;
}

.primary-radio-label small {
  margin-top: 2px;
  color: #8a95a6;
  font-size: 8px;
}

.primary-candidate-row.is-primary
.primary-radio-label strong {
  color: #3152ba;
}

.variable-validation-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #68778d;
  background: #f0f3f8;
  font-size: 11px;
  line-height: 1.55;
}

.variable-validation-message strong {
  flex: 0 0 auto;
  color: #35435a;
}

.variable-validation-message.is-valid {
  color: #31684b;
  background: #eaf8f0;
}

.variable-validation-message.is-valid strong {
  color: #24603f;
}

.variable-validation-message.is-error {
  color: #9b3e4b;
  background: #fff0f2;
}

.variable-validation-message.is-error strong {
  color: #963344;
}

.variable-empty-state {
  padding: 40px 25px;
  text-align: center;
}

.variable-empty-state strong {
  color: #35435a;
}

.variable-empty-state p {
  max-width: 460px;
  margin: 7px auto 0;
  color: #7b8799;
  line-height: 1.6;
}

@media (max-width: 1050px) {

  .primary-candidate-row {
    grid-template-columns:
      30px
      minmax(130px, 1fr)
      minmax(145px, .85fr);
  }

  .primary-variable-choice {
    grid-column: 2 / -1;
  }

}

@media (max-width: 700px) {

  .primary-variable-guide {
    grid-template-columns:
      40px
      minmax(0, 1fr);
  }

  .primary-current-value {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .primary-candidate-row {
    grid-template-columns:
      28px
      minmax(0, 1fr);
  }

  .candidate-key-field,
  .primary-variable-choice {
    grid-column: 2;
  }

  .variable-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .variable-validation-message {
    flex-direction: column;
  }

}

/* PATCH_RPCLOUD_PRIMARY_VARIABLE_END */
