:root {
    /* Colors - Water Green & White Theme */
    --primary: #2A9D8F;
    /* Water Green / Teal */
    --primary-hover: #21867a;
    --primary-light: #E0F2F1;
    /* Very light teal for backgrounds */

    --secondary: #264653;
    /* Dark Slate Blue - Good contrast with teal */
    --accent: #E9C46A;
    /* Sand / Gold - for warnings or highlights */

    --bg: #F4F7F6;
    /* Light Mint/Gray background */
    --surface: #FFFFFF;
    /* White surface */

    --text: #2C3E50;
    /* Dark Gray for main text */
    --text-muted: #64748B;
    /* Muted text */
    --text-light: #94A3B8;

    --border: #E2E8F0;
    --divider: #F1F5F9;

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: --bg;
    /* Fallback */
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    --sidebar-nav-inline-pad: var(--space-md);
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s ease, width 0.25s ease;
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    border-bottom: 1px solid var(--divider);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

.brand-name {
    white-space: nowrap;
}

#sidebar-collapse-toggle {
    margin-left: auto;
}

#sidebar-collapse-icon {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-md) var(--sidebar-nav-inline-pad);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav-group + .nav-group {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--divider);
}

.nav-group-title {
    display: none;
    margin: 0;
    padding: 0 var(--space-md);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.sidebar-context-panel {
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--divider);
}

.sidebar-context-title {
    margin: 0;
    padding: 0 var(--space-md);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.procedure-status-filters-sidebar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

.procedure-status-filters-sidebar .procedure-status-card {
    min-height: 74px;
    padding: 0.62rem 0.72rem;
    border-radius: 12px;
}

.procedure-status-filters-sidebar .procedure-status-card-label {
    font-size: 0.66rem;
}

.procedure-status-filters-sidebar .procedure-status-card-count {
    font-size: 1.55rem;
}

.procedure-status-filters-sidebar .procedure-status-card-note {
    font-size: 0.68rem;
}

.nav-item {
    --nav-item-pad-y: var(--space-sm);
    --nav-item-pad-x: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-inline: calc(var(--sidebar-nav-inline-pad) * -1);
    padding: var(--nav-item-pad-y) calc(var(--nav-item-pad-x) + var(--sidebar-nav-inline-pad));
    border-radius: 0;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: var(--bg);
    color: var(--primary);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-divider {
    height: 1px;
    background-color: var(--divider);
    margin: var(--space-sm) 0;
}

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

#current-user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.role-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar {
        width: 86px;
    }

    body.sidebar-collapsed .sidebar-header {
        padding: 0 var(--space-sm);
    }

    body.sidebar-collapsed .logo {
        gap: 0;
    }

    body.sidebar-collapsed .brand-name {
        display: none;
    }

    body.sidebar-collapsed .sidebar-nav {
        --sidebar-nav-inline-pad: var(--space-sm);
    }

    body.sidebar-collapsed .nav-item {
        --nav-item-pad-x: var(--space-sm);
        justify-content: center;
        gap: 0;
        font-size: 0;
    }

    body.sidebar-collapsed .nav-item .icon {
        width: auto;
        font-size: 1.08rem;
        line-height: 1;
    }

    body.sidebar-collapsed .nav-group-title,
    body.sidebar-collapsed .sidebar-context-panel {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar-footer {
        padding: var(--space-sm);
        justify-content: center;
        gap: var(--space-xs);
    }

    body.sidebar-collapsed .user-details {
        display: none;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.top-bar {
    height: 64px;
    min-height: 64px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0 var(--space-lg);
}

#page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

#top-actions .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

#top-actions:empty {
    display: none;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    background-color: #EEF3F9;
    background-image: none;
    min-width: 0;
}

.app-boot-loader {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background:
        radial-gradient(1200px 720px at 8% 4%, rgba(255, 255, 255, 0.44), transparent 60%),
        radial-gradient(900px 640px at 92% 100%, rgba(38, 70, 83, 0.3), transparent 62%),
        linear-gradient(138deg, #d9f0ea 0%, #a7d6cd 44%, #5ea89b 78%, #2a9d8f 100%);
}

.app-boot-loader-card {
    width: min(100%, 420px);
    display: grid;
    gap: 1rem;
    padding: 1.5rem 1.6rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
}

.app-boot-loader-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 30px rgba(42, 157, 143, 0.28);
}

.app-boot-loader-copy {
    display: grid;
    gap: 0.2rem;
}

.app-boot-loader-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
}

.app-boot-loader-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.app-boot-loader-bar {
    position: relative;
    overflow: hidden;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

.app-boot-loader-bar-fill {
    position: absolute;
    inset: 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    animation: appBootSlide 1.1s ease-in-out infinite;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    color: var(--text-muted);
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--bg);
    color: var(--secondary);
}

.icon-btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 1px;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: var(--transition);
}

.logout-btn:hover {
    background-color: #FEF2F2;
    color: var(--danger);
}

/* Generic Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

/* Public Sign Loader */
.public-sign-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background:
        radial-gradient(1200px 500px at 10% -20%, rgba(30, 64, 175, 0.16), transparent 60%),
        radial-gradient(900px 420px at 100% 120%, rgba(16, 185, 129, 0.14), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.public-sign-loader-card {
    width: min(92vw, 420px);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.public-sign-spinner {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    border: 3px solid rgba(15, 23, 42, 0.14);
    border-top-color: var(--primary);
    animation: publicSignSpin 0.9s linear infinite;
}

.public-sign-loader-title {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.public-sign-loader-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

html.public-sign-boot #app,
body.sign-view.sign-loading #app {
    visibility: hidden;
}

html.app-booting:not(.public-sign-boot) #app {
    visibility: hidden;
}

html.app-booting:not(.public-sign-boot) .app-boot-loader {
    display: flex;
}

html.public-sign-boot .public-sign-loader,
body.sign-view.sign-loading .public-sign-loader {
    display: flex;
}

body.sign-view.sign-loading {
    overflow: hidden;
}

/* External Signing View */
body.sign-view .sidebar,
body.sign-view .top-bar,
body.sign-view .sidebar-overlay {
    display: none;
}

body.sign-view .main-content {
    width: 100%;
}

body.sign-view .content-area {
    padding: var(--space-xl);
    background-image: none;
}

body.sign-view .sign-flow-card {
    max-width: 760px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

body.sign-view.sign-animate-enter .sign-flow-card {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
}

body.sign-view.sign-content-ready .sign-flow-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

body.sign-view .sign-context-card {
    margin-bottom: var(--space-md);
    border: 1px dashed var(--border);
}

body.sign-view .sign-context-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

body.sign-view .sign-context-copy {
    min-width: 0;
}

body.sign-view .sign-context-title {
    font-weight: 600;
}

body.sign-view .sign-context-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.sign-view .sign-flow-note {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

body.sign-view .sign-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

body.sign-view .sign-step-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

body.sign-view .sign-step-copy {
    min-width: 0;
    flex: 1;
}

body.sign-view .sign-step-title {
    font-weight: 600;
}

body.sign-view .sign-step-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.sign-view .sign-step-action {
    min-height: 44px;
    font-weight: 600;
}

body.sign-view .sign-placement-wrapper {
    margin-bottom: var(--space-md);
}

body.sign-view .sign-doc-progress {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
}

body.sign-view .sign-contract-inline-actions {
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

body.sign-view .sign-contract-reopen-btn {
    margin-top: 0.55rem;
}

body.sign-view #btn-review-contract-payment {
    display: none;
}

body.sign-view .sign-placement-stage {
    position: relative;
    min-height: clamp(420px, 72vh, 980px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: auto;
    background: #F8FAFC;
    margin-top: var(--space-sm);
}

body.sign-view .sign-placement-stage.is-readonly {
    touch-action: pan-x pan-y;
}

body.sign-view .sign-placement-stage.is-loading {
    overflow: hidden;
}

body.sign-view .sign-placement-stage.is-loading .sign-placement-image,
body.sign-view .sign-placement-stage.is-loading .contract-pdf-container {
    opacity: 0;
}

body.sign-view .sign-placement-image {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    background: #fff;
    transition: opacity 0.2s ease;
}

body.sign-view .contract-pdf-container {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    transition: opacity 0.2s ease;
}

body.sign-view .sign-contract-pdf-page {
    position: relative;
    width: fit-content;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

body.sign-view .sign-contract-pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

body.sign-view .sign-placement-marker {
    position: absolute;
    border: 2px dashed rgba(30, 64, 175, 0.7);
    background: rgba(30, 64, 175, 0.12);
    border-radius: var(--radius-sm);
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

body.sign-view .sign-placement-marker-abs {
    left: 0;
    top: 0;
}

body.sign-view .sign-placement-marker-label {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1E3A8A;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(30, 64, 175, 0.16);
    border-radius: calc(var(--radius-sm) - 1px);
    padding: 0.22rem 0.28rem;
    line-height: 1.04;
    white-space: normal;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
    letter-spacing: -0.015em;
}

body.sign-view .contract-read-sentinel {
    width: 100%;
    height: 2px;
}

body.sign-view .sign-placement-skeleton {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 2;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
}

body.sign-view .sign-placement-stage.is-loading .sign-placement-skeleton {
    display: flex;
}

body.sign-view .sign-placement-skeleton-sheet {
    width: min(640px, 100%);
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.sign-view .sign-placement-skeleton-line {
    height: 12px;
    border-radius: 999px;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 25%, rgba(148, 163, 184, 0.34) 45%, rgba(148, 163, 184, 0.18) 65%);
    background-size: 220% 100%;
    animation: publicSignShimmer 1.2s ease-in-out infinite;
}

body.sign-view .sign-placement-skeleton-line:last-child {
    margin-bottom: 0;
}

body.sign-view .sign-placement-skeleton-line.w-90 {
    width: 90%;
}

body.sign-view .sign-placement-skeleton-line.w-80 {
    width: 80%;
}

body.sign-view .sign-placement-skeleton-line.w-70 {
    width: 70%;
}

body.sign-view .sign-placement-skeleton-line.w-65 {
    width: 65%;
}

body.sign-view .sign-placement-skeleton-line.w-45 {
    width: 45%;
}

body.sign-view .sign-placement-skeleton-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

body.sign-view .sign-contract-modal {
    z-index: 90;
    padding: var(--space-md);
}

body.sign-view .sign-contract-card {
    width: min(96vw, 1040px);
    height: min(92vh, 980px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
}

body.sign-view .sign-contract-header {
    gap: var(--space-md);
    align-items: flex-start;
    flex-wrap: nowrap;
}

body.sign-view .sign-contract-header-copy {
    min-width: 0;
    flex: 1;
}

body.sign-view .sign-contract-header-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

body.sign-view .sign-contract-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

body.sign-view .sign-contract-zoom-btn {
    width: 1.9rem;
    min-width: 1.9rem;
    height: 1.9rem;
    min-height: 1.9rem;
    border-radius: var(--radius-full);
    border: 0;
    padding: 0;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--secondary);
}

body.sign-view .sign-contract-zoom-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.sign-view .sign-contract-zoom-label {
    min-width: 3.05rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

body.sign-view #btn-contract-close {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
}

body.sign-view .sign-contract-progress {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

body.sign-view .sign-contract-body {
    flex: 1;
    min-height: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

body.sign-view .sign-contract-stage {
    min-height: 100%;
    height: 100%;
    margin-top: 0;
    padding: 0.45rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 12px;
}

body.sign-view .sign-contract-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #fff 100%);
}

body.sign-view .sign-contract-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

body.sign-view.contract-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.sign-view .sign-contract-modal {
        padding: 0;
        align-items: flex-end;
    }

    body.sign-view .sign-contract-card {
        width: 100%;
        height: min(100dvh, 100vh);
        max-height: min(100dvh, 100vh);
        border-radius: 16px 16px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    body.sign-view .sign-contract-header {
        padding: 0.9rem 0.95rem 0.75rem;
        border-bottom: 1px solid var(--divider);
        gap: 0.55rem;
    }

    body.sign-view .sign-contract-header-actions {
        gap: 0.3rem;
    }

    body.sign-view .sign-contract-zoom-controls {
        padding: 0.15rem;
    }

    body.sign-view .sign-contract-zoom-btn {
        width: 1.8rem;
        min-width: 1.8rem;
        height: 1.8rem;
        min-height: 1.8rem;
        font-size: 0.96rem;
    }

    body.sign-view .sign-contract-zoom-label {
        min-width: 2.75rem;
        font-size: 0.72rem;
    }

    body.sign-view .sign-contract-progress {
        font-size: 0.82rem;
    }

    body.sign-view .sign-contract-body {
        padding: 0.55rem 0.75rem;
    }

    body.sign-view .sign-contract-stage {
        padding: 0.35rem;
    }

    body.sign-view .sign-contract-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.75rem 0.95rem calc(0.75rem + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
    }

    body.sign-view .sign-contract-hint {
        font-size: 0.8rem;
    }

    body.sign-view .sign-contract-footer .btn {
        width: 100%;
        min-height: 48px;
    }
}

body.sign-view .signature-pad-wrapper {
    --signature-space-ratio: 2.8;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    position: relative;
    aspect-ratio: var(--signature-space-ratio);
    height: auto;
    background-color: #fff;
    touch-action: none;
}

body.sign-view #sign-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

body.sign-view .sign-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    pointer-events: none;
    opacity: 0.5;
}

body.sign-view .sign-signature-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-md);
}

body.sign-view .sign-signature-actions .btn {
    min-height: 44px;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

body.sign-view .sign-clear-btn {
    color: var(--danger);
}

body.sign-view #sign-paginator {
    margin-top: var(--space-md);
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}

body.sign-view .sign-paginator-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

body.sign-view #sign-step-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

body.sign-view .sign-step-indicator {
    min-height: 36px;
    gap: 0.35rem;
    white-space: nowrap;
}

body.sign-view .sign-step-indicator-number {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
}

body.sign-view .sign-step-indicator-done {
    color: #065f46;
    font-size: 0.78rem;
    font-weight: 700;
}

body.sign-view .sign-paginator-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

body.sign-view .sign-paginator-nav .btn {
    min-height: 42px;
}

body.sign-view #sign-step-page {
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.sign-view .sign-webpay-modal {
    z-index: 70;
}

body.sign-view .sign-webpay-card {
    width: 100%;
    max-width: 460px;
}

body.sign-view .sign-webpay-note {
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

body.sign-view .sign-webpay-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

body.sign-view .sign-webpay-actions .btn {
    min-height: 44px;
}

/* Utilities */
.hidden {
    display: none !important;
}

.mobile-only {
    display: none;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.user-assignment-card {
    margin-top: var(--space-md);
}

#procedure-notary-actions {
    margin-top: var(--space-sm);
}

.stack-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.split-layout {
    display: grid;
    gap: var(--space-md);
}

.split-layout-2-1 {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.list-toolbar {
    gap: var(--space-md);
    flex-wrap: wrap;
}

.list-toolbar .form-group {
    margin-bottom: 0;
}

.wizard-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.wizard-actions-between {
    justify-content: space-between;
}

.wizard-actions-end {
    justify-content: flex-end;
}

.wizard-actions-split>* {
    flex: 1;
}

.inline-options {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.role-selector {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
}

.radio-card.option-card {
    transition: var(--transition);
}

.radio-card.option-card:hover {
    background-color: #F8FAFC;
    border-color: var(--primary);
}

.upload-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.upload-summary-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.upload-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.upload-summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.upload-summary-name {
    display: block;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(100%, 520px);
}

.upload-summary-lines {
    display: none;
    margin-top: 0.45rem;
    width: 100%;
    gap: 0.4rem;
}

.upload-summary-line {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.36rem 0.52rem;
    border-radius: 0.6rem;
    border: 1px solid #DCFCE7;
    background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
}

.upload-summary-line-ticket {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22C55E;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}

.upload-summary-line-index {
    min-width: 2.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.upload-summary-line-name {
    min-width: 0;
    flex: 1;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-ticket {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #CBD5E1;
    color: #0F172A;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.doc-upload-state.is-success {
    border-color: #BBF7D0;
    background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
}

.doc-upload-state.is-success .upload-ticket {
    background: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.doc-upload-state.is-empty {
    border-color: var(--border);
    background: linear-gradient(180deg, #F8FAFC 0%, #F8FAFC 100%);
}

.doc-upload-state.is-uploading {
    border-color: #BAE6FD;
    background: linear-gradient(180deg, #EFF6FF 0%, #F0F9FF 100%);
}

.doc-upload-state.is-uploading .upload-ticket {
    background: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
    animation: upload-ticket-pulse 1s ease-in-out infinite;
}

.doc-upload-state.is-error {
    border-color: #FECACA;
    background: linear-gradient(180deg, #FEF2F2 0%, #FEF2F2 100%);
}

.doc-upload-state.is-error .upload-ticket {
    background: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

@keyframes upload-ticket-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.top-actions-teleport {
    display: none;
}

.form-grow,
.form-grow-320,
.form-fixed-150 {
    margin-bottom: 0;
}

.form-grow {
    flex: 1;
    min-width: 220px;
}

.form-grow-320 {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.procedure-header-search {
    margin-bottom: 0;
    width: min(360px, 42vw);
    min-width: 240px;
    max-width: 420px;
}

.procedure-header-search .form-control {
    min-height: 2.4rem;
}

.procedures-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.procedures-panel .procedures-list-toolbar {
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.62rem 0;
    border-top: 1px solid var(--divider);
    background: transparent;
}

.table-participant-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.table-participant-list li {
    margin: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.procedure-status-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
    background: #EEF3F9;
    border-bottom: 1px solid var(--divider);
}

.procedure-status-card {
    --group-accent: #0F766E;
    border: 1px solid #D6DFEA;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFE 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    padding: 0.72rem 0.8rem;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.procedure-status-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.10);
}

.procedure-status-card.is-active {
    border-color: #8BB2E0;
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.16);
}

.procedure-status-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.procedure-status-card-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #516176;
    line-height: 1.2;
}

.procedure-status-card-count {
    font-size: 2.05rem;
    font-weight: 700;
    color: var(--group-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.procedure-status-card-note {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1;
}

.procedure-status-card[data-status-group="open"] {
    --group-accent: #0284C7;
}

.procedure-status-card[data-status-group="partially_signed"] {
    --group-accent: #2563EB;
}

.procedure-status-card[data-status-group="in_notary"] {
    --group-accent: #D97706;
}

.procedure-status-card[data-status-group="closed"] {
    --group-accent: #059669;
}

@media (max-width: 1100px) {
    .procedure-status-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .procedure-status-filters {
        grid-template-columns: 1fr;
        gap: 0.62rem;
        padding: 0.62rem;
    }

    .procedure-status-card {
        min-height: 84px;
    }

    .procedure-status-card-count {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) {
    .procedures-panel .table-container {
        border-radius: 10px;
    }

    .procedures-panel .procedures-table-compact {
        font-size: 0.82rem;
        table-layout: fixed;
    }

    .procedures-panel .procedures-table-compact th,
    .procedures-panel .procedures-table-compact td {
        padding: 0.52rem 0.62rem;
        line-height: 1.24;
        vertical-align: middle;
    }

    .procedures-panel .procedures-table-compact th:nth-child(1),
    .procedures-panel .procedures-table-compact td:nth-child(1) {
        width: 72px;
    }

    .procedures-panel .procedures-table-compact th:nth-child(4),
    .procedures-panel .procedures-table-compact td:nth-child(4) {
        width: 30ch;
    }

    .procedures-panel .procedures-table-compact th:nth-child(5),
    .procedures-panel .procedures-table-compact td:nth-child(5) {
        width: 13ch;
    }

    .procedures-panel .procedures-table-compact th:nth-child(6),
    .procedures-panel .procedures-table-compact td:nth-child(6) {
        width: 130px;
    }

    .procedures-panel .procedures-table-compact th:nth-child(8),
    .procedures-panel .procedures-table-compact td:nth-child(8) {
        width: 142px;
    }

    .procedures-panel .procedures-table-compact th:nth-child(9),
    .procedures-panel .procedures-table-compact td:nth-child(9) {
        width: 96px;
    }

    .procedures-panel .procedures-table-compact td:nth-child(2),
    .procedures-panel .procedures-table-compact td:nth-child(3),
    .procedures-panel .procedures-table-compact td:nth-child(5),
    .procedures-panel .procedures-table-compact td:nth-child(7) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .procedures-panel .procedures-table-compact td:nth-child(4),
    .procedures-panel .procedures-table-compact td:nth-child(5) {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.35;
    }

    .procedures-panel .procedures-table-compact td:nth-child(5) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .procedures-panel .procedures-table-compact .procedure-date-cell {
        white-space: nowrap;
        font-size: 0.76rem;
        font-variant-numeric: tabular-nums;
    }

    .procedures-panel .procedures-table-compact td[data-label="Acciones"] .btn {
        min-height: 1.9rem;
        padding: 0.16rem 0.56rem;
        font-size: 0.74rem;
    }

    .procedures-panel #procedures-pagination {
        padding: 0.45rem 0.62rem;
        gap: 0.55rem;
    }

    .procedures-panel #procedures-pagination .form-label {
        font-size: 0.74rem;
        margin-bottom: 0.2rem;
    }

    .procedures-panel #procedures-pagination .form-control {
        min-height: 2rem;
        padding: 0.3rem 0.45rem;
        font-size: 0.78rem;
    }

    .procedures-panel #procedures-pagination .btn {
        min-height: 1.95rem;
    }

    .notary-panel .notary-table-compact {
        font-size: 0.82rem;
        table-layout: fixed;
    }

    .notary-panel .table-container {
        border-radius: 10px;
    }

    .notary-panel .notary-table-compact th,
    .notary-panel .notary-table-compact td {
        padding: 0.52rem 0.62rem;
        line-height: 1.24;
        vertical-align: middle;
    }

    .notary-panel .notary-table-compact th:nth-child(3),
    .notary-panel .notary-table-compact td:nth-child(3) {
        width: 30ch;
    }

    .notary-panel .notary-table-compact th:nth-child(4),
    .notary-panel .notary-table-compact td:nth-child(4) {
        width: 13ch;
    }

    .notary-panel .notary-table-compact td:nth-child(4),
    .notary-panel .notary-table-compact td:nth-child(5),
    .notary-panel .notary-table-compact td:nth-child(6),
    .notary-panel .notary-table-compact td:nth-child(7) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notary-panel #notary-pagination {
        padding: 0.45rem 0.62rem;
        gap: 0.55rem;
    }

    .notary-panel #notary-pagination .form-label {
        font-size: 0.74rem;
        margin-bottom: 0.2rem;
    }

    .notary-panel #notary-pagination .form-control {
        min-height: 2rem;
        padding: 0.3rem 0.45rem;
        font-size: 0.78rem;
    }

    .notary-panel #notary-pagination .btn {
        min-height: 1.95rem;
    }
}

.form-fixed-150 {
    width: 150px;
}

.card-body-flush {
    padding: 0;
}

.card-empty-slot {
    display: none;
}

.btn-block {
    width: 100%;
}

.btn-danger-ghost {
    color: var(--danger);
}

.modal-shell {
    width: min(100%, 640px);
    max-height: min(90vh, 920px);
    overflow-y: auto;
}

.modal-shell-sm {
    width: min(100%, 420px);
}

.modal-shell-md {
    width: min(100%, 500px);
}

.modal-shell-lg {
    width: min(100%, 640px);
}

.modal-closed {
    display: none;
}

.stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stack-md {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.muted-text {
    color: var(--text-muted);
}

.muted-sm {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.muted-xs {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.field-help {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-title-xl {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.inline-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-card {
    display: none;
    max-width: 720px;
    margin: 0 auto;
}

.wizard-header {
    justify-content: flex-start;
    gap: var(--space-md);
}

.wizard-step-title {
    margin-bottom: var(--space-md);
}

.option-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.option-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.option-title {
    font-weight: 600;
}

.option-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.radio-card input:checked+div {
    color: var(--primary);
}

.payment-warning {
    display: none;
    background-color: #FEF2F2;
    color: #991B1B;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.participant-suggestions-panel {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #F8FAFC;
}

.participant-suggestions-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: var(--space-sm);
}

.participant-suggestions-title {
    margin: 0;
    color: var(--secondary);
    font-size: 0.95rem;
}

.participant-suggestions-state {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.participant-suggestions-list {
    display: grid;
    gap: var(--space-sm);
}

.participant-suggestion-item {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    display: grid;
    gap: 0.45rem;
}

.participant-suggestion-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.participant-suggestion-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.participant-suggestion-role {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.14);
    color: #0369A1;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.participant-suggestion-fields {
    display: grid;
    gap: 0.18rem;
}

.participant-suggestion-field {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.participant-suggestion-meta {
    font-size: 0.74rem;
    color: #64748B;
}

.participant-suggestion-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-dashed {
    border-style: dashed;
}

.participant-form {
    display: none;
}

.participant-form-title {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.wizard-note {
    background-color: #F8FAFC;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.wizard-note p {
    margin-bottom: 8px;
    color: inherit;
}

.wizard-note ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.wizard-note-info {
    border: 1px solid rgba(30, 64, 175, 0.2);
    background: rgba(219, 234, 254, 0.55);
    color: var(--secondary);
}

.upload-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.upload-actions .btn {
    justify-content: center;
    padding: var(--space-md);
}

.upload-btn-primary {
    border: 2px dashed var(--primary);
}

.doc-upload-state {
    display: block;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #F8FAFC 0%, #F8FAFC 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.signature-placement-panel {
    display: none;
    margin-bottom: var(--space-md);
    --signature-space-ratio: 2.8;
    --placement-zoom: 1;
    --placement-base-height: 340px;
}

.signature-placement-tools {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.signature-placement-tool-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.signature-placement-tool-group-doc {
    min-width: min(100%, 340px);
}

.signature-placement-tools-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.signature-placement-tools .section-actions {
    margin: 0;
    align-items: center;
    gap: 0.35rem;
}

.signature-placement-tools .btn {
    min-width: 2.3rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.55rem;
}

.signature-placement-tools .form-control {
    min-height: 2.15rem;
    padding: 0.35rem 0.55rem;
}

#placement-zoom-label {
    min-width: 3.2rem;
    text-align: right;
    font-weight: 600;
    color: var(--secondary);
}

#placement-page-label {
    min-width: 5.4rem;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
}

#placement-doc-label {
    min-width: 10.4rem;
    max-width: 22rem;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signature-placement-stage {
    position: relative;
    width: 100%;
    height: var(--placement-base-height);
    min-height: var(--placement-base-height);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: auto;
    background: #F8FAFC;
    overscroll-behavior: contain;
}

.signature-placement-image-wrap,
.signature-placement-frame {
    position: relative;
    zoom: var(--placement-zoom);
    transform-origin: top left;
}

.signature-placement-image-wrap {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.signature-placement-image {
    width: 100%;
    height: auto;
    display: block;
}

.signature-placement-frame {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    min-width: 100%;
}

.signature-placement-loading {
    color: var(--text-muted);
    font-size: 0.84rem;
    padding: var(--space-lg) 0;
}

.signature-placement-pdf-page {
    position: relative;
    width: fit-content;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.signature-placement-pdf-canvas {
    display: block;
    max-width: none;
    border-radius: var(--radius-sm);
}

.signature-placement-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.signature-placement-hitbox {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.signature-placement-hitbox.is-armed {
    pointer-events: auto;
    cursor: crosshair;
    background: rgba(30, 64, 175, 0.04);
}

.signature-placement-zone {
    position: absolute;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
}

.signature-placement-zone.is-dragging {
    cursor: grabbing;
}

.signature-placement-zone-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signature-placement-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
    cursor: nwse-resize;
    pointer-events: auto;
    touch-action: none;
}

.signature-placement-zone-remove {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.signature-placement-empty {
    display: none;
    margin-top: var(--space-md);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.signature-placement-doc-progress {
    margin-top: var(--space-md);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.55rem;
}

.signature-placement-doc-progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.55rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.signature-placement-doc-progress-item.is-complete {
    border-color: rgba(6, 95, 70, 0.35);
    background: rgba(16, 185, 129, 0.06);
}

.signature-placement-doc-progress-item.is-error {
    border-color: rgba(220, 38, 38, 0.42);
    background: rgba(254, 226, 226, 0.74);
}

.signature-placement-doc-progress-item.is-active {
    border-color: rgba(30, 64, 175, 0.42);
    box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.12);
}

.signature-placement-doc-progress-item.is-active.is-error {
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.16);
}

.signature-placement-doc-progress-name {
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signature-placement-doc-progress-meta {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.signature-placement-doc-progress-item.is-error .signature-placement-doc-progress-name,
.signature-placement-doc-progress-item.is-error .signature-placement-doc-progress-meta {
    color: #b91c1c;
}

.signature-placement-list-hint {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.signature-placement-list {
    margin-top: var(--space-xs);
    display: grid;
    gap: var(--space-sm);
}

.signature-placement-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.signature-placement-item:hover {
    border-color: rgba(15, 23, 42, 0.28);
}

.signature-placement-item:focus-visible {
    outline: 2px solid rgba(30, 64, 175, 0.25);
    outline-offset: 1px;
}

.signature-placement-item.is-complete {
    border-color: rgba(5, 150, 105, 0.46);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.12);
}

.signature-placement-item.is-active {
    border-color: rgba(30, 64, 175, 0.45);
    background: rgba(30, 64, 175, 0.06);
    box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.12);
}

.signature-placement-item.is-active.is-complete {
    border-color: rgba(5, 150, 105, 0.6);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.signature-placement-item-main {
    min-width: 0;
}

.signature-placement-item-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.signature-placement-item-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.1);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    line-height: 1.2;
}

.signature-placement-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.signature-placement-item-meta.is-complete {
    color: #047857;
    font-weight: 600;
}

.signature-placement-item-meta.is-pending {
    color: #9A3412;
    font-weight: 600;
}

.upload-title {
    font-weight: 600;
}

.upload-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.participant-item {
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.participant-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.participant-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--primary);
    flex-shrink: 0;
}

.participant-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.participant-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.participant-billing-fields {
    margin-top: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), rgba(255, 255, 255, 0.96));
}

.participant-billing-header {
    margin-bottom: var(--space-md);
}

.participant-billing-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.participant-billing-copy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.participant-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-edit-p {
    color: var(--secondary);
}

.btn-del-p {
    color: var(--danger);
}

.p-role-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.summary-block {
    margin-bottom: var(--space-md);
}

.summary-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.summary-link-input {
    font-size: 0.75rem;
}

.procedure-id-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.procedure-packet-block {
    margin-bottom: var(--space-md);
}

.procedure-packet-block:last-child {
    margin-bottom: 0;
}

.procedure-packet-title {
    font-weight: 600;
    color: var(--secondary);
}

.procedure-signature-stack,
.procedure-links-stack,
.procedure-timeline-stack,
.procedure-grants-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.procedure-links-stack {
    margin-top: var(--space-md);
}

.procedure-doc-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#procedure-documents {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.procedure-scrollable-stack {
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    padding-right: 4px;
}

.procedure-doc-name,
.procedure-request-name,
.procedure-timeline-title,
.procedure-grant-user,
.notary-inbox-title {
    font-weight: 600;
}

.procedure-doc-meta,
.procedure-request-mail {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.procedure-doc-path,
.procedure-timeline-date,
.procedure-grant-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.procedure-doc-download {
    margin-top: 8px;
    align-self: flex-start;
}

.notary-inbox-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.notary-inbox-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.notary-inbox-empty {
    display: none;
}

.billing-tenant-picker {
    max-width: 320px;
    margin-bottom: var(--space-md);
    display: none;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

.billing-plan-card {
    padding: var(--space-lg);
    background-color: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.billing-plan-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.billing-plan-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 8px 0;
}

.billing-plan-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.billing-renewal {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.billing-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.billing-actions .btn {
    width: 100%;
}

.billing-actions .btn-ghost {
    color: var(--danger);
}

.billing-section-title {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.webhook-intro {
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.mono-textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.sidebar-overlay:not(#sidebar-overlay) {
    position: fixed;
    inset: 0;
    padding: var(--space-md);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.sidebar-overlay:not(#sidebar-overlay)>div.card {
    width: min(100%, 640px);
    max-height: min(90vh, 920px);
    overflow-y: auto;
}

.kanban-container {
    overflow-x: auto;
    height: calc(100dvh - 148px);
    padding-bottom: var(--space-md);
}

.kanban-board {
    display: flex;
    gap: var(--space-md);
    height: 100%;
    min-width: 1000px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background-color: #F1F5F9;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.kanban-column-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
}

.kanban-col-body {
    padding: var(--space-sm);
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.kanban-card {
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.kanban-card-body {
    padding: var(--space-md);
}

.kanban-card-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.kanban-card-value {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-layout {
    display: flex;
    height: calc(100dvh - 148px);
    gap: var(--space-md);
}

.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-header {
    justify-content: space-between;
}

.editor-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.editor-canvas-wrap {
    padding: 0;
    overflow-y: auto;
    background-color: #FAFAFA;
}

.editor-content {
    max-width: 800px;
    margin: var(--space-lg) auto;
    width: calc(100% - (var(--space-lg) * 2));
    background: white;
    min-height: 800px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    outline: none;
    line-height: 1.6;
}

.editor-footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--divider);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
}

.editor-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
}

.editor-sidebar-body {
    overflow-y: auto;
}

.procedure-header,
.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

.procedure-header-meta,
.deal-header-meta {
    text-align: right;
}

.procedure-detail-back-btn {
    font-weight: 600;
    gap: 0.35rem;
}

.procedure-detail-back-arrow {
    font-size: 1rem;
    line-height: 1;
}

.procedure-doc-item,
.procedure-request-item,
.procedure-link-item,
.procedure-timeline-item,
.procedure-grant-item {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.procedure-request-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

.procedure-request-meta {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.procedure-request-billing {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.procedure-request-billing-title {
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.procedure-request-billing-grid {
    display: grid;
    gap: 0.35rem;
}

.procedure-request-billing-row {
    display: grid;
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
    font-size: 0.8rem;
}

.procedure-request-billing-label {
    color: var(--text-muted);
}

.procedure-request-billing-value {
    color: var(--text-primary);
    word-break: break-word;
}

.procedure-link-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.procedure-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.procedure-link-input {
    font-size: 0.75rem;
    flex: 1;
    min-width: 240px;
}

.notary-inbox-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.notary-inbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.notary-inbox-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notary-inbox-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.notary-review-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.notary-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.notary-review-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.notary-review-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notary-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-md);
}

.notary-review-documents-card {
    grid-column: span 2;
}

.notary-review-summary,
.notary-review-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.notary-review-summary-row,
.notary-review-participant,
.notary-review-document {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.notary-review-summary-row:last-child,
.notary-review-participant:last-child,
.notary-review-document:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.notary-review-summary-row span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notary-review-summary-row strong {
    text-align: right;
    color: var(--text);
}

.notary-review-document-actions,
.notary-review-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notary-review-actions {
    margin-top: var(--space-md);
}

.notary-review-readonly {
    display: none;
    margin-top: var(--space-md);
}

.property-card-media {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.property-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.property-card-price {
    font-weight: 700;
    color: var(--primary);
}

.property-card-title {
    margin-bottom: 4px;
}

.property-card-features {
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.tabs-row {
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.tabs-row .tab-btn {
    white-space: nowrap;
}

.kyc-status-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

body.sidebar-open {
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Login View Overrides */
body.login-view .sidebar {
    display: none;
}

body.login-view .top-bar {
    display: none;
}

body.login-view .main-content {
    margin-left: 0;
}

body.login-view .content-area {
    position: relative;
    padding: var(--space-xl);
    background:
        radial-gradient(1200px 720px at 8% 4%, rgba(255, 255, 255, 0.42), transparent 60%),
        radial-gradient(900px 640px at 92% 100%, rgba(38, 70, 83, 0.3), transparent 62%),
        linear-gradient(138deg, #d9f0ea 0%, #a7d6cd 44%, #5ea89b 78%, #2a9d8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.login-view .content-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: 0 0;
    animation: loginDotsDrift 24s linear infinite;
    pointer-events: none;
}

@keyframes loginDotsDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

@keyframes publicSignSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes appBootSlide {
    0% {
        transform: translateX(-125%);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes publicSignShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sign-view.sign-content-ready .sign-flow-card,
    body.sign-view .sign-placement-image,
    body.sign-view .contract-pdf-container,
    body.sign-view .sign-placement-skeleton-line {
        transition: none;
        animation: none;
    }
}

body.login-view .login-container {
    width: 100%;
    max-width: 460px;
    margin: 0;
    position: relative;
    z-index: 1;
}

body.login-view .login-card {
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

body.login-view .login-header {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
    padding: 2.25rem 2rem 1.2rem;
}

body.login-view .login-logo-slot {
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
}

body.login-view .login-logo {
    font-size: 2rem;
    margin-bottom: 0;
    gap: 0.25rem;
}

body.login-view .login-brand-wordmark {
    font-size: 2.45rem;
    font-weight: 800;
    color: #0f2f4b;
    letter-spacing: -0.02em;
    line-height: 1;
}

body.login-view .login-subtitle {
    margin-top: 0.15rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

body.login-view .login-card-body {
    padding: 1.5rem 2rem 1.3rem;
}

body.login-view .login-form .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

body.login-view .login-form .form-control {
    padding: 0.78rem 0.82rem;
    font-size: 1rem;
    border-color: #cbd5e1;
}

body.login-view .login-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.login-view .login-submit-btn {
    width: 100%;
    margin-top: var(--space-sm);
    padding: 0.82rem 1rem;
    background-color: #3b82f6;
    border-color: #3b82f6;
    font-size: 0.95rem;
    font-weight: 600;
}

body.login-view .login-submit-btn:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
}

body.login-view .login-footer {
    margin: 1rem 0 0.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #0f172a;
}

body.login-view .login-footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.login-view .login-footer__brand::before,
body.login-view .login-footer__brand::after {
    content: '';
    width: clamp(30px, 11vw, 56px);
    height: 1.2px;
    background-color: #3b82f6;
    border-radius: 999px;
}

body.login-view .login-footer__link {
    color: #1e293b;
    text-decoration: underline;
    text-decoration-thickness: 1.2px;
    text-underline-offset: 4px;
    font-size: 1rem;
    font-weight: 400;
    align-self: center;
}

body.login-view .login-footer__link:hover {
    color: #2563eb;
}

body.login-view .login-footer__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 4px;
}
