.process-main {
    padding-bottom: 40px;
}

.back-dashboard {
    padding: 9px 13px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.back-dashboard:hover {
    color: var(--accent);
    border-color: #d8d1ff;
}

.process-hero {
    min-height: 210px;
    margin-bottom: 20px;
    padding: 30px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    color: #fff;
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(255,255,255,.14),
            transparent 24%
        ),
        linear-gradient(
            130deg,
            #111b2d 0%,
            #242551 56%,
            #6758e7 100%
        );

    box-shadow:
        0 22px 50px rgba(28, 30, 75, .15);
}

.process-tag {
    display: inline-flex;
    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;

    background: rgba(255,255,255,.08);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.process-hero h2 {
    max-width: 650px;
    margin: 13px 0 10px;
    font-size: clamp(26px, 3.5vw, 37px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.process-hero p {
    max-width: 690px;
    margin: 0;
    color: #cdd2e4;
    font-size: 12px;
    line-height: 1.65;
}

.hero-safety {
    min-width: 245px;
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 13px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;

    background: rgba(255,255,255,.08);
}

.hero-safety-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;

    border-radius: 12px;

    background: rgba(54, 211, 153, .14);
    color: #5ce2ae;
    font-weight: 900;
}

.hero-safety span,
.hero-safety strong,
.hero-safety small {
    display: block;
}

.hero-safety span {
    color: #aeb7ca;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-safety strong {
    margin: 3px 0;
    font-size: 11px;
}

.hero-safety small {
    color: #aeb7ca;
    font-size: 9px;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.process-left {
    display: grid;
    gap: 13px;
}

.process-card,
.process-summary-card,
.security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.process-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);

    border-radius: 18px;
    overflow: hidden;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.process-card.locked-card {
    opacity: .64;
}

.process-card.unlocked-card {
    opacity: 1;
}

.process-card-number {
    display: flex;
    justify-content: center;
    padding-top: 22px;

    background: #fafbfe;
    border-right: 1px solid var(--border);

    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
}

.process-card-body {
    padding: 21px 22px;
}

.process-card-title {
    margin-bottom: 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.process-card-title span:first-child {
    color: var(--accent);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .11em;
}

.process-card-title h3 {
    margin: 4px 0 0;
    font-size: 16px;
}

.step-status {
    min-height: 26px;
    padding: 0 9px;

    display: inline-flex;
    align-items: center;

    border-radius: 999px;
    background: #f0f2f6;
    color: #8a93a2;

    font-size: 8px;
    font-weight: 800;
}

.step-status.complete {
    background: var(--success-soft);
    color: var(--success);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.form-grid label > span {
    display: block;
    margin-bottom: 6px;

    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.full-field {
    grid-column: 1 / -1;
}

select {
    width: 100%;
    height: 43px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #fff;
    color: var(--text);

    font-size: 11px;
    outline: none;
}

select:focus {
    border-color: #c6bdfb;
    box-shadow: 0 0 0 3px rgba(105, 88, 232, .08);
}

select:disabled {
    background: #f7f8fb;
    color: #8d96a4;
}

.secondary-action,
.primary-action {
    border: 0;
    cursor: pointer;
}

.secondary-action {
    margin-top: 14px;
    min-height: 38px;
    padding: 0 14px;

    border-radius: 10px;

    background: var(--accent-soft);
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
}

.secondary-action:hover {
    background: #e6e2ff;
}

.validation-placeholder {
    padding: 18px;

    border: 1px dashed #d9dee8;
    border-radius: 12px;

    color: var(--muted);
    background: #fafbfc;

    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.validation-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.validation-stats > div {
    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fafbfe;
}

.validation-stats span,
.validation-stats strong {
    display: block;
}

.validation-stats span {
    color: var(--muted);
    font-size: 8px;
}

.validation-stats strong {
    margin-top: 5px;
    font-size: 18px;
}

.area-check-list {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.area-check-list > div {
    min-height: 42px;
    padding: 8px 10px;

    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;

    border: 1px solid var(--border);
    border-radius: 10px;
}

.area-check-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;

    border-radius: 7px;

    background: var(--success-soft);
    color: var(--success);

    font-size: 9px;
    font-weight: 900;
}

.area-check-list span:nth-child(2) {
    color: #4e596b;
    font-size: 9px;
}

.area-check-list strong {
    font-size: 9px;
}

.annulment-box {
    padding: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    border: 1px solid #e6e0ff;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #faf9ff,
            #f7f5ff
        );
}

.annulment-area,
.annulment-box strong,
.annulment-box small {
    display: block;
}

.annulment-area {
    color: var(--accent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
}

.annulment-box strong {
    margin: 4px 0 3px;
    font-size: 12px;
}

.annulment-box small {
    max-width: 520px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.toggle {
    position: relative;
    width: 45px;
    height: 25px;
    flex: 0 0 auto;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle span {
    position: absolute;
    inset: 0;

    border-radius: 999px;
    background: #d9dee6;

    cursor: pointer;
    transition: .2s;
}

.toggle span::before {
    content: "";

    width: 19px;
    height: 19px;

    position: absolute;
    left: 3px;
    top: 3px;

    border-radius: 50%;
    background: #fff;

    box-shadow: 0 2px 7px rgba(0,0,0,.16);

    transition: .2s;
}

.toggle input:checked + span {
    background: var(--accent);
}

.toggle input:checked + span::before {
    transform: translateX(20px);
}

.info-note {
    margin-top: 10px;
    padding: 10px 12px;

    color: #6f7483;
    background: #f8f9fc;

    border-radius: 9px;

    font-size: 9px;
    line-height: 1.5;
}

.primary-action {
    width: 100%;
    min-height: 67px;

    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #6655dc,
            #7d6cf1
        );

    box-shadow:
        0 13px 28px rgba(101, 85, 220, .22);
}

.primary-action:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
}

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

.primary-action span {
    font-size: 12px;
    font-weight: 850;
}

.primary-action small {
    color: #ddd8ff;
    font-size: 9px;
}

.process-right {
    position: sticky;
    top: 56px;

    display: grid;
    gap: 13px;
}

.process-summary-card,
.security-card {
    border-radius: 17px;
}

.process-summary-card {
    padding: 21px;
}

.summary-label {
    color: var(--accent);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .1em;
}

.process-summary-card h3 {
    margin: 7px 0 4px;
    font-size: 17px;
}

.process-summary-card > p {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.summary-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--border);
}

.summary-row {
    min-height: 39px;

    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;

    border-bottom: 1px solid #eef0f5;
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row span {
    color: var(--muted);
    font-size: 8px;
}

.summary-row strong {
    text-align: right;
    font-size: 9px;
}

.blocked-text {
    color: var(--warning);
}

.security-card {
    padding: 17px;

    display: flex;
    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #edf9f5,
            #f5fcf9
        );

    border-color: #d8f0e7;
}

.security-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    border-radius: 9px;

    background: var(--success-soft);
    color: var(--success);

    font-size: 10px;
    font-weight: 900;
}

.security-card strong {
    font-size: 10px;
}

.security-card p {
    margin: 4px 0 0;
    color: #67917f;
    font-size: 8px;
    line-height: 1.5;
}

.execution-modal {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        rgba(8, 14, 25, .72);

    backdrop-filter: blur(7px);
}

.execution-modal[hidden] {
    display: none;
}

.execution-dialog {
    width: min(680px, 100%);

    padding: 28px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 23px;

    background: #fff;

    box-shadow:
        0 35px 90px rgba(0,0,0,.30);
}

.execution-header {
    display: flex;
    align-items: center;
    gap: 17px;
}

.execution-spinner {
    width: 43px;
    height: 43px;

    flex: 0 0 auto;

    border: 4px solid #eceafd;
    border-top-color: var(--accent);
    border-radius: 50%;

    animation: spin .8s linear infinite;
}

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

.execution-header span,
.execution-result > div:nth-child(2) > span {
    color: var(--accent);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .09em;
}

.execution-header h2,
.execution-result h2 {
    margin: 4px 0;
    font-size: 21px;
}

.execution-header p,
.execution-result p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.execution-progress {
    height: 6px;
    margin: 22px 0;

    overflow: hidden;
    border-radius: 999px;

    background: #eceef4;
}

.execution-progress span {
    display: block;
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #6455dc,
            #9285fa
        );

    transition: width .35s ease;
}

.execution-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.execution-steps > div {
    min-height: 38px;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: #758091;
    background: #fafbfc;

    font-size: 9px;

    transition: .2s;
}

.execution-steps > div.active {
    border-color: #d9d2ff;
    background: #f6f4ff;
    color: var(--accent);
}

.execution-steps > div.done {
    border-color: #dcefe8;
    background: #f3fbf8;
    color: var(--success);
}

.execution-steps > div span {
    font-weight: 900;
}

.execution-result {
    text-align: center;
}

.result-success {
    width: 54px;
    height: 54px;

    margin: 0 auto 14px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background: var(--success-soft);
    color: var(--success);

    font-size: 21px;
    font-weight: 900;
}

.result-metrics {
    margin: 22px 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.result-metrics > div {
    padding: 13px 7px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fafbfc;
}

.result-metrics span,
.result-metrics strong {
    display: block;
}

.result-metrics span {
    color: var(--muted);
    font-size: 8px;
}

.result-metrics strong {
    margin-top: 4px;
    font-size: 15px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.result-actions a,
.result-actions button {
    min-height: 39px;
    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 9px;
    font-weight: 800;

    text-decoration: none;
    cursor: pointer;
}

.primary-result-action {
    border: 0;
    color: #fff;
    background: var(--accent);
}

.result-actions button {
    border: 1px solid var(--border);
    color: var(--muted);
    background: #fff;
}

@media (max-width: 1050px) {
    .process-layout {
        grid-template-columns: 1fr;
    }

    .process-right {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .process-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-safety {
        width: 100%;
    }

    .form-grid,
    .validation-stats,
    .area-check-list,
    .execution-steps,
    .result-metrics,
    .process-right {
        grid-template-columns: 1fr;
    }

    .process-card {
        grid-template-columns: 45px minmax(0, 1fr);
    }

    .process-card-body {
        padding: 18px 15px;
    }

    .execution-dialog {
        padding: 20px;
    }
}
