.instruction_card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow:
            0 30px 70px rgba(0, 0, 0, 0.9),
            0 0 0 1px rgba(255, 255, 255, 0.02);
    max-width: 980px;
    margin: 0 auto;
}

.instruction_header {
    margin-bottom: 18px;
}

.instruction_title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.instruction_desc {
    font-size: 14px;
    color: var(--color-text-muted);
}

.instruction_steps {
    display: grid;
    gap: 12px;
}

.instruction_step {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border-subtle);
    border-radius: 12px;
    padding: 14px;
    min-width: 0;
}

.instruction_step_title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.instruction_step_desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.command_hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 4px 0 8px;
}

.command_block {
    position: relative;
    margin-bottom: 8px;
}

.command_block:last-child {
    margin-bottom: 0;
}

.command_pre {
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--color-border-subtle);
    background: #111514;
    padding: 12px 52px 12px 12px;
    overflow-x: auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.command_code {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.35;
    color: var(--color-text-main);
    white-space: pre;
}

.command_copy {
    position: absolute;
    top: 7px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--color-border-subtle);
    background: #1f1f1f;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .07s ease, border-color .2s ease, color .2s ease;
}

.command_copy:hover {
    border-color: var(--color-accent);
    color: var(--color-text-main);
}

.command_copy:active {
    transform: translateY(1px);
}

.command_copy.copied {
    border-color: var(--color-accent);
    color: var(--color-text-accent);
}

.instruction_toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(20px);
    background: #1f1f1f;
    color: var(--color-text-main);
    border: 1px solid rgba(0, 114, 79, 0.6);
    padding: 10px 16px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.instruction_toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media screen and (max-width: 767px) {
    .instruction_card {
        padding: 14px;
    }
}

@media screen and (max-width: 426px) {
    .instruction_title {
        font-size: 18px;
    }

    .instruction_step_title {
        font-size: 15px;
    }

    .command_code {
        font-size: 12px;
    }
}
