.pib-wrap {
    max-width: 980px;
    margin: 24px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.pib-card,
.pib-result-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
    padding: 24px;
    margin-bottom: 26px;
}

.pib-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.pib-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 10px 12px;
    font-size: 15px;
    background: #f7f7f7;
}

.pib-description {
    resize: vertical;
    min-height: 70px;
}

.pib-options {
    margin-top: 22px;
}

.pib-option {
    margin-bottom: 14px;
}

.pib-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 6px;
    cursor: pointer;
}

.pib-check-label input {
    margin: 0;
}

.pib-red span {
    color: #d30000;
}

.pib-extra {
    display: none;
    margin-top: 6px;
}

.pib-option.is-open .pib-extra {
    display: grid;
    gap: 8px;
}

.pib-preset {
    background: #fff;
}

.pib-manual {
    min-height: 48px;
    resize: vertical;
}

.pib-special-modes {
    display: grid;
    gap: 14px;
    margin: 26px 0;
}

.pib-model-box {
    background: #f8fbff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.pib-model {
    background: #fff;
}

.pib-btn {
    width: 100%;
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 14px 18px;
    font-size: 15px;
    transition: opacity .2s ease, transform .05s ease;
}

.pib-btn:hover {
    opacity: .92;
}

.pib-btn:active {
    transform: translateY(1px);
}

.pib-compile {
    background: #0b8ee6;
}

.pib-copy {
    background: #43ad4b;
}

.pib-clear {
    background: #8f8f8f;
}

.pib-result-title {
    color: #f04b4b;
    font-size: 32px;
    margin: 0 0 28px;
    font-weight: 500;
}

.pib-output {
    color: #ff2e2e;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: transparent;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 24px;
}

.pib-actions {
    display: grid;
    gap: 0;
}

@media (max-width: 640px) {
    .pib-card,
    .pib-result-card {
        padding: 18px;
    }

    .pib-result-title {
        font-size: 25px;
    }
}
