/* =============================================================
   Jeturing Sign — Portal CSS
   Paleta: Azul oscuro #1F3864 | Verde #16A34A | Gris claro #F8FAFC
   ============================================================= */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #F8FAFC;
    color: #1E293B;
}

a { color: #1F3864; }
a:hover { color: #16A34A; }

/* ---------- Page shell ---------- */
.jsign-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header ---------- */
.jsign-header {
    background: #1F3864;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.jsign-header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.jsign-header__sub {
    font-size: .75rem;
    opacity: .8;
}

/* ---------- Footer ---------- */
.jsign-footer {
    background: #1E293B;
    color: #94A3B8;
    text-align: center;
    padding: 16px;
    font-size: .75rem;
    margin-top: auto;
}

.jsign-footer a { color: #94A3B8; }
.jsign-footer a:hover { color: #fff; }

/* ---------- Hero ---------- */
.jsign-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: #1F3864;
    line-height: 1.2;
}

.jsign-hero__sub {
    color: #475569;
    margin-top: 8px;
}

@media (max-width: 576px) {
    .jsign-hero__title { font-size: 1.4rem; }
}

/* ---------- Cards ---------- */
.jsign-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.jsign-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F3864;
    margin-bottom: 20px;
}

/* ---------- Form sections ---------- */
.jsign-form-section { border-top: 1px solid #E2E8F0; padding-top: 16px; }

.jsign-form-section__label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748B;
    margin-bottom: 12px;
}

/* ---------- Tabs de firma ---------- */
.jsign-tabs {
    display: flex;
    border-bottom: 2px solid #E2E8F0;
    gap: 4px;
}

.jsign-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 8px 18px;
    font-size: .9rem;
    color: #64748B;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.jsign-tab:hover { color: #1F3864; }

.jsign-tab--active {
    color: #1F3864;
    border-bottom-color: #1F3864;
    font-weight: 600;
}

/* ---------- Canvas de firma ---------- */
.jsign-canvas-wrapper {
    position: relative;
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: 8px;
    overflow: hidden;
}

#jsign-canvas {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    touch-action: none;
}

/* ---------- Tipo (preview texto) ---------- */
.jsign-type-preview {
    min-height: 80px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #1E293B;
    padding: 8px 16px;
}

/* ---------- Upload preview ---------- */
.jsign-upload-preview {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
}

/* ---------- OTP Box ---------- */
.jsign-otp-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 20px;
}

.jsign-otp-box h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1F3864;
    margin-bottom: 6px;
}

/* ---------- Botones de accion ---------- */
.jsign-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.jsign-actions .btn-secondary {
    background: #1F3864;
    border-color: #1F3864;
    padding: 12px 32px;
}

.jsign-actions .btn-secondary:hover {
    background: #16305A;
    border-color: #16305A;
}

/* ---------- Visor del PDF ---------- */
.jsign-pdf-viewer {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.jsign-pdf-frame {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

.jsign-pdf-download {
    padding: 8px 12px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    text-align: right;
}

@media (max-width: 768px) {
    .jsign-pdf-frame { height: 320px; }
}

/* ---------- Informacion del documento ---------- */
.jsign-doc-info {
    background: #fff;
    border-left: 4px solid #1F3864;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.jsign-doc-info__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1F3864;
    margin-bottom: 4px;
}

.jsign-doc-info__meta { color: #64748B; font-size: .9rem; }

.jsign-doc-info__message {
    margin-top: 8px;
    color: #475569;
    font-style: italic;
    font-size: .9rem;
}

/* ---------- Pantalla de exito ---------- */
.jsign-success { text-align: center; padding: 24px 0; }

.jsign-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #16A34A;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(22,163,74,.35);
}

.jsign-success__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #16A34A;
}

.jsign-success__sub {
    color: #475569;
    margin-top: 8px;
}

/* ---------- Cuota bar ---------- */
.jsign-quota-bar {
    background: #F1F5F9;
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-block;
    min-width: 220px;
}

/* ---------- Features bloqueadas ---------- */
.jsign-upsell-features { padding: 4px 0; }

.jsign-locked-feature {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    font-size: .9rem;
    color: #475569;
}

.jsign-locked-feature:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1F3864;
}

.jsign-locked-feature__lock { font-size: 1rem; flex-shrink: 0; }

/* ---------- Sajet CTA block ---------- */
.jsign-sajet-cta {
    background: linear-gradient(135deg, #1F3864 0%, #16305A 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    text-align: center;
}

.jsign-sajet-cta p { color: rgba(255,255,255,.85); }
.jsign-sajet-cta strong { color: #fff; }

.jsign-sajet-cta .btn-primary {
    background: #16A34A;
    border-color: #16A34A;
}

.jsign-sajet-cta .btn-primary:hover {
    background: #15803D;
    border-color: #15803D;
}

/* ---------- Error box ---------- */
.jsign-error-box {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 48px 32px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

/* ---------- Upload form ---------- */
.jsign-upload-form .form-control:focus,
.jsign-upload-form .form-check-input:focus {
    border-color: #1F3864;
    box-shadow: 0 0 0 3px rgba(31,56,100,.15);
}

.jsign-upload-form .btn-primary {
    background: #1F3864;
    border-color: #1F3864;
    font-weight: 600;
}

.jsign-upload-form .btn-primary:hover {
    background: #16305A;
    border-color: #16305A;
}

/* ---------- Responsive utilities ---------- */
@media (max-width: 576px) {
    .jsign-card { padding: 20px 16px; }
    .jsign-actions { flex-direction: column; align-items: stretch; }
    .jsign-actions .btn { width: 100%; }
    .jsign-header { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- Step badges ---------- */
.jsign-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1F3864;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ---------- PDF Placement area ---------- */
.jsign-pdf-placement {
    position: relative;
    background: #e2e8f0;
    border: 2px solid #CBD5E1;
    border-radius: 8px;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
}

.jsign-pdf-placement canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Signature overlay (drag to reposition) ---------- */
.jsign-sig-overlay {
    position: absolute;
    border: 2px dashed #1F3864;
    border-radius: 4px;
    background: rgba(31, 56, 100, 0.06);
    cursor: move;
    min-width: 60px;
    min-height: 24px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(31,56,100,.25);
    transition: box-shadow .1s;
}

.jsign-sig-overlay:hover {
    box-shadow: 0 4px 16px rgba(31,56,100,.35);
}

.jsign-sig-overlay img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 2px;
}

.jsign-sig-resize {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 18px;
    height: 18px;
    background: #1F3864;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: se-resize;
    user-select: none;
    pointer-events: auto;
    line-height: 1;
}

/* ---------- Page navigation ---------- */
.jsign-page-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ---------- Stepper (diseñador interno) ---------- */
.jsign-stepper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jsign-stepper__item {
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.jsign-stepper__item.is-active {
    background: #1F3864;
    border-color: #1F3864;
    color: #fff;
}

/* ---------- Campos PDF predefinidos ---------- */
.jsign-field-overlay,
.jsign-design-field {
    position: absolute;
    z-index: 25;
    border: 2px solid #1F3864;
    background: rgba(239, 246, 255, .92);
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 3px 12px rgba(31,56,100,.22);
    overflow: hidden;
}

.jsign-field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #1F3864;
    line-height: 1.1;
    margin-bottom: 2px;
}

.jsign-field-input {
    width: 100%;
    height: calc(100% - 14px);
    border: 1px solid #BFDBFE;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 4px;
    background: #fff;
}

.jsign-field-signature-preview {
    display: block;
    width: 100%;
    height: calc(100% - 14px);
    object-fit: contain;
}

.jsign-field-initial-preview {
    display: flex;
    height: calc(100% - 14px);
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: clamp(18px, 3vw, 34px);
    font-style: italic;
    color: #1F3864;
}

.jsign-field-check {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1F3864;
    font-weight: 600;
}

.jsign-designer-palette .active {
    background: #1F3864;
    color: #fff;
}

.jsign-design-field {
    cursor: move;
    background: rgba(219, 234, 254, .95);
}

.jsign-design-field span {
    font-size: 12px;
    font-weight: 700;
    color: #1F3864;
}

.jsign-design-field button {
    position: absolute;
    top: 1px;
    right: 1px;
    border: 0;
    background: #DC2626;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 16px;
    font-size: 12px;
}

.jsign-design-field i {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    background: #1F3864;
    cursor: se-resize;
}

/* ========================================================================
   Workspace de revisión y firma (experiencia de documento a pantalla completa)
   ======================================================================== */
.jsign-review-page {
    min-height: 100dvh;
    height: 100dvh;
    background: #f5f6f8;
    color: #1e293b;
    overflow: hidden;
}

.jsign-review-topbar {
    height: 60px;
    flex: 0 0 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    position: relative;
    z-index: 40;
}

.jsign-review-brand { display: inline-flex; align-items: center; gap: 9px; color: #172554; font-weight: 750; font-size: 15px; }
.jsign-review-brand__mark { width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 7px; color: #fff; background: #183b78; font-weight: 800; }
.jsign-review-title { color: #202938; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.jsign-review-actions { justify-self: end; display: inline-flex; align-items: center; gap: 12px; }
.jsign-review-progress { color: #64748b; font-size: 12px; white-space: nowrap; }
.jsign-finish-button { min-width: 104px; background: #087fbe; border-color: #087fbe; font-weight: 650; box-shadow: none; }
.jsign-finish-button:hover, .jsign-finish-button:focus { background: #066da6; border-color: #066da6; }
.jsign-finish-button:disabled { background: #94a3b8; border-color: #94a3b8; }
.jsign-icon-button { width: 40px; height: 40px; border: 0; border-radius: 6px; color: #33215a; background: #f0eff5; font-size: 18px; letter-spacing: 2px; }
.jsign-icon-button:hover { background: #e5e3ed; }

.jsign-review-alerts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); width: min(580px, calc(100vw - 32px)); z-index: 60; }
.jsign-review-alerts .alert { box-shadow: 0 10px 24px rgba(15, 23, 42, .17); }

.jsign-review-workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: 286px minmax(0, 1fr) 86px; position: relative; }

/* Comercial Jeturing Sign: el pago no interrumpe el flujo de firma. */
.jsign-commercial-card {
    background: linear-gradient(145deg, #ffffff 0%, #f3f7ff 100%);
    border: 1px solid #cbd9f1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 56, 100, .08);
    padding: 1.35rem;
}
.jsign-commercial-kicker { color: #1f6feb; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.jsign-commercial-card h4 { color: #173b70; margin: .35rem 0 .7rem; }
.jsign-review-sidebar { background: #fff; border-right: 1px solid #e1e5ea; overflow-y: auto; padding: 20px 16px; z-index: 2; }
.jsign-review-document { padding: 2px 6px 17px; border-bottom: 1px solid #e7eaf0; margin-bottom: 16px; }
.jsign-review-document__eyebrow { display: block; text-transform: uppercase; letter-spacing: .075em; color: #64748b; font-weight: 750; font-size: 10px; margin-bottom: 7px; }
.jsign-review-document h1 { margin: 0 0 8px; color: #172554; font-size: 17px; line-height: 1.25; font-weight: 700; }
.jsign-review-document p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.jsign-review-document__message { margin-top: 10px !important; color: #475569 !important; }
.jsign-review-card { margin-bottom: 13px; padding: 13px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(15, 23, 42, .035); }
.jsign-review-card__heading { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 750; color: #172554; margin-bottom: 7px; }
.jsign-required-dot { color: #b45309; font-size: 10px; font-weight: 700; }
.jsign-review-verified { background: #ecfdf5; border-color: #a7f3d0; color: #047857; font-weight: 700; font-size: 13px; }
.jsign-review-sidebar .jsign-otp-box { padding: 13px; background: #eff6ff; }
.jsign-review-sidebar .jsign-otp-box h2 { font-size: 14px; margin: 0 0 5px; color: #1e3a8a; font-weight: 750; }
.jsign-review-sidebar .jsign-otp-box p { color: #475569; font-size: 12px; line-height: 1.4; margin: 0 0 10px; }
.jsign-review-sidebar .jsign-tabs { gap: 0; border: 1px solid #dbe2ea; border-radius: 6px; overflow: hidden; }
.jsign-review-sidebar .jsign-tab { flex: 1; padding: 6px 3px; border: 0; border-radius: 0; font-size: 11px; }
.jsign-review-sidebar .jsign-tab--active { background: #e8f0fe; color: #0f4c8a; }
.jsign-review-sidebar .jsign-canvas-wrapper { border-radius: 6px; }
.jsign-review-sidebar #jsign-canvas { height: 118px; }
.jsign-review-sidebar .jsign-type-preview { min-height: 72px; font-size: 29px; }
.jsign-review-hint { color: #64748b; font-size: 11px; line-height: 1.4; margin: 10px 5px 0; }

.jsign-review-stage { min-width: 0; display: flex; flex-direction: column; background: #f7f7f8; position: relative; overflow: hidden; }
.jsign-stage-toolbar { height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,.97); color: #334155; z-index: 3; }
.jsign-toolbar-button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #334155; font-size: 24px; line-height: 1; }
.jsign-toolbar-button:hover:not(:disabled) { background: #e8edf4; }
.jsign-toolbar-button:disabled { color: #cbd5e1; }
.jsign-page-counter, .jsign-zoom-value { min-width: 82px; text-align: center; color: #475569; font-size: 12px; font-weight: 600; }
.jsign-zoom-value { min-width: 44px; }
.jsign-toolbar-divider { height: 22px; width: 1px; background: #d7dde6; margin: 0 5px; }
.jsign-pdf-scroll { flex: 1; overflow: auto; padding: 28px 30px 42px; display: flex; justify-content: center; align-items: flex-start; }
.jsign-review-stage .jsign-pdf-placement { width: auto; max-width: none; border: 1px solid #d5d9df; border-radius: 0; background: #fff; box-shadow: 0 3px 14px rgba(15,23,42,.16); cursor: default; }
.jsign-review-stage .jsign-pdf-placement canvas { width: auto; max-width: none; }
.jsign-stage-hint { flex: 0 0 auto; margin: 0; padding: 9px 16px; background: rgba(255,255,255,.96); border-top: 1px solid #e5e7eb; text-align: center; color: #64748b; font-size: 12px; }
.jsign-review-stage .jsign-sig-overlay { border-color: #7c3aed; background: rgba(237,233,254,.76); border-radius: 4px; }
.jsign-review-stage .jsign-sig-resize { background: #6d28d9; }
.jsign-review-stage .jsign-field-overlay { border-color: #7c3aed; background: rgba(245,243,255,.95); border-radius: 4px; box-shadow: 0 2px 10px rgba(91,33,182,.23); cursor: pointer; }
.jsign-review-stage .jsign-field-overlay:focus-within, .jsign-review-stage .jsign-field-overlay:hover { outline: 3px solid rgba(124,58,237,.22); z-index: 30; }
.jsign-review-stage .jsign-field-label { color: #5b21b6; }
.jsign-review-stage .jsign-field-input { border-color: #c4b5fd; }

.jsign-review-rail { background: #fff; border-left: 1px solid #e1e5ea; display: flex; flex-direction: column; align-items: stretch; padding: 12px 8px; gap: 5px; z-index: 4; }
.jsign-rail-button { min-height: 62px; padding: 6px 2px; border: 0; background: transparent; color: #3b235f; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; cursor: pointer; }
.jsign-rail-button span { font-size: 25px; line-height: 1; }
.jsign-rail-button small { font-size: 10px; color: #475569; font-weight: 650; }
.jsign-rail-button:hover, .jsign-rail-button.is-active { background: #f0ecf8; color: #5b21b6; }
.jsign-rail-spacer { flex: 1; }
.jsign-rail-zoom { text-align: center; color: #475569; font-size: 11px; font-weight: 700; padding: 4px 0; }

.jsign-tool-panel { position: absolute; top: 14px; right: 96px; width: 310px; max-height: calc(100% - 28px); overflow: auto; z-index: 20; background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; padding: 15px; box-shadow: 0 14px 34px rgba(15,23,42,.18); }
.jsign-tool-panel__header { display: flex; justify-content: space-between; align-items: center; color: #172554; margin-bottom: 12px; }
.jsign-tool-results { display: grid; gap: 6px; }
.jsign-search-result { width: 100%; text-align: left; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; padding: 8px; color: #334155; font-size: 12px; }
.jsign-search-result:hover { border-color: #7c3aed; background: #faf5ff; }
.jsign-page-thumbnails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jsign-page-thumb { border: 2px solid transparent; border-radius: 5px; padding: 4px; background: #f8fafc; color: #475569; font-size: 10px; text-align: center; }
.jsign-page-thumb:hover, .jsign-page-thumb.is-active { border-color: #7c3aed; background: #faf5ff; }
.jsign-page-thumb canvas { display: block; width: 100%; height: auto; margin-bottom: 4px; }

.jsign-review-success { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; z-index: 70; background: rgba(248,250,252,.97); color: #172554; }
.jsign-review-success h2 { margin: 0 0 8px; font-size: 28px; font-weight: 750; }
.jsign-review-success p { color: #64748b; margin: 0; }
.jsign-review-footer { min-height: 30px; flex: 0 0 30px; padding: 8px 16px; background: #fff; border-top: 1px solid #e5e7eb; text-align: center; color: #64748b; font-size: 10px; }
.jsign-review-footer a { color: #334155; }

@media (max-width: 1050px) {
    .jsign-review-workspace { grid-template-columns: 245px minmax(0, 1fr) 70px; }
    .jsign-review-progress { display: none; }
    .jsign-review-topbar { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 780px) {
    .jsign-review-page { height: auto; min-height: 100dvh; overflow: visible; }
    .jsign-review-topbar { grid-template-columns: 1fr auto; height: 58px; padding: 0 10px; }
    .jsign-review-title, .jsign-review-brand > span:last-child, .jsign-icon-button { display: none; }
    .jsign-review-workspace { display: flex; flex-direction: column; overflow: visible; }
    .jsign-review-sidebar { order: 2; border-right: 0; border-top: 1px solid #e1e5ea; max-height: none; overflow: visible; }
    .jsign-review-stage { order: 1; height: min(72vh, 650px); }
    .jsign-review-rail { order: 3; min-height: 72px; flex-direction: row; border-left: 0; border-top: 1px solid #e1e5ea; padding: 6px; overflow-x: auto; }
    .jsign-rail-button { min-width: 64px; min-height: 55px; }
    .jsign-rail-spacer { display: none; }
    .jsign-rail-zoom { align-self: center; }
    .jsign-tool-panel { position: fixed; top: 66px; right: 10px; left: 10px; width: auto; max-height: 55vh; }
    .jsign-pdf-scroll { padding: 14px; }
    .jsign-review-stage .jsign-pdf-placement canvas { max-width: 100%; height: auto; }
}
