/* ── Card ─────────────────────────────────────── */
.ptg-wrapper {
    width: 100%;
    font-family: inherit;
}

.ptg-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ── Form ─────────────────────────────────────── */
.ptg-form {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ptg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ptg-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.ptg-input {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 18px !important;
    color: black !important;
    background-color: white !important;
    border: 2px solid lightgray !important;
    border-radius: 12px !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    height: unset !important;
}

.ptg-input:focus {
    border: 2px solid black !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.ptg-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.ptg-select {
    appearance: auto;
    cursor: pointer;
}

/* ── Actions ──────────────────────────────────── */
.ptg-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.ptg-generate-btn,
.ptg-generate-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    background: rgb(13, 29, 173);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    outline: none;
    white-space: nowrap;
}

.ptg-generate-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.ptg-generate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* ── Result ───────────────────────────────────── */
.ptg-result {
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.ptg-result-label {
    padding: 16px 28px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: rgb(13, 29, 173);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptg-result-body {
    padding: 0 28px 24px;
}

.ptg-output {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptg-twist {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
}

.ptg-twist-icon {
    flex: 0 0 auto;
    margin-top: 3px;
    color: rgb(13, 29, 173);
    font-size: 15px;
}

.ptg-twist-text {
    flex: 1 1 auto;
    font-size: 17px;
    line-height: 1.6;
    color: #222;
}

.ptg-copy-btn,
.ptg-copy-btn:focus {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    line-height: 1;
}

.ptg-copy-btn:hover {
    color: rgb(13, 29, 173);
    border-color: rgb(13, 29, 173);
    background: #eceefb;
}

.ptg-loading,
.ptg-empty {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 480px) {
    .ptg-form {
        padding: 20px 18px 18px;
    }

    .ptg-result-label,
    .ptg-result-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ptg-generate-btn {
        flex: 1;
        justify-content: center;
    }
}
