.osil-wrap { max-width: 1280px; }
.osil-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 18px; margin: 16px 0; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.osil-card h2 { margin-top: 0; }
.osil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.osil-endpoints code { direction: ltr; display: inline-block; padding: 4px 6px; max-width: 100%; overflow-wrap: anywhere; }
.osil-muted { color: #646970; }
.osil-message-cell { max-width: 440px; }
.osil-message-cell p { margin-top: 0; }
.osil-badge { display: inline-block; min-width: 70px; text-align: center; border-radius: 999px; padding: 3px 8px; background: #f0f0f1; font-size: 12px; }
.osil-telegram { background: #e7f5ff; }
.osil-messenger { background: #eef2ff; }
.osil-facebook { background: #eaf0ff; }
.osil-instagram { background: #fff0f7; }
.osil-meta { background: #f6f7f7; }
.osil-reply-box { margin-top: 8px; }
.osil-reply-box textarea { width: 100%; margin: 8px 0; }
.osil-inbox-table td { vertical-align: top; }
.osil-form .form-table th { width: 190px; }
@media (max-width: 782px) {
    .osil-grid { grid-template-columns: 1fr; }
    .osil-form .form-table th { width: auto; }
}
.osil-hero { border-inline-start: 4px solid #2271b1; }
.osil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.osil-inline-form p { margin: 0 0 12px; }
.osil-code-ltr { direction: ltr; display: inline-block; max-width: 100%; white-space: normal; word-break: break-all; }
.osil-form .form-table th { width: 210px; }
.osil-card hr { border: 0; border-top: 1px solid #dcdcde; margin: 16px 0; }
.osil-connect-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.osil-connect-card { min-height: 300px; }
.osil-button-xl { font-size: 16px !important; min-height: 42px; line-height: 40px !important; padding: 0 18px !important; }
.osil-status-list { margin: 14px 0 0; }
.osil-status-list li { margin: 8px 0; }
.osil-details summary { cursor: pointer; font-size: 15px; }
.osil-details[open] summary { margin-bottom: 14px; }
.osil-mini-form { margin-top: 18px; padding-top: 12px; border-top: 1px solid #dcdcde; }
.osil-code-ltr { direction: ltr; unicode-bidi: plaintext; }
.osil-steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.osil-steps-row > div { background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 8px; padding: 14px; }
.osil-steps-row span { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #2271b1; color: #fff; margin-left: 8px; font-weight: 700; }
.osil-steps-row strong { display: inline-block; font-size: 14px; }
.osil-steps-row p { margin: 8px 0 0; color: #646970; }
.osil-setup-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.osil-platform-card h3 { margin: 0; }
.osil-card-title-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.osil-state { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.osil-state-ready { background: #edfaef; color: #0a6b22; }
.osil-state-waiting { background: #fff8e5; color: #7a5600; }
.osil-simple-steps { margin: 12px 20px 12px 0; }
.osil-simple-steps li { margin-bottom: 8px; }
.osil-button-wide { width: 100%; max-width: 260px; text-align: center; }
.osil-small-note { font-size: 12px; margin-bottom: 0; }
.osil-config-card pre { background: #1e1e1e; color: #f1f1f1; padding: 14px; border-radius: 8px; overflow: auto; direction: ltr; text-align: left; }
.osil-config-card code { direction: ltr; unicode-bidi: plaintext; }
@media (max-width: 782px) {
    .osil-card-title-row { align-items: flex-start; flex-direction: column; }
    .osil-button-wide { max-width: 100%; }
}
.osil-section-title { margin: 24px 0 8px; }
.osil-setup-strip { border-inline-start: 4px solid #00a32a; }
.osil-pre { direction: ltr; text-align: left; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 6px; padding: 12px; overflow: auto; white-space: pre-wrap; }
.osil-platform-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.osil-platform-card { position: relative; overflow: hidden; }
.osil-platform-head { display: flex; align-items: center; gap: 10px; }
.osil-platform-head h2 { margin: 0; }
.osil-platform-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f0f0f1; color: #1d2327; font-weight: 700; text-transform: uppercase; }
.osil-warning-text { color: #8a4b00; background: #fcf9e8; border: 1px solid #f0c36d; padding: 8px 10px; border-radius: 6px; }
.osil-future-card { opacity: .92; }
.osil-future-card .button[disabled], .osil-connect-card .button[disabled] { cursor: not-allowed; opacity: .65; }
.osil-future-card ol, .osil-setup-strip ol { margin-inline-start: 20px; }
.osil-future-card li, .osil-setup-strip li { margin: 6px 0; }
.osil-key-center { border-inline-start: 4px solid #8c54ff; }
.osil-key-center h3 { margin-top: 20px; padding-top: 14px; border-top: 1px solid #dcdcde; }
.osil-key-center h3:first-of-type { border-top: 0; padding-top: 0; }
.osil-webhook-help { border-inline-start: 4px solid #dba617; }
.osil-key-form .regular-text { max-width: 100%; }

/* Seller one-click front-end page */
.osil-frontend-connect { max-width: 1180px; margin: 0 auto; }
.osil-frontend-connect .button,
.osil-seller-connect-grid .button { display: inline-block; text-decoration: none; border-radius: 6px; border: 1px solid #2271b1; background: #f6f7f7; color: #2271b1; cursor: pointer; }
.osil-frontend-connect .button-primary,
.osil-seller-connect-grid .button-primary { background: #2271b1; color: #fff; border-color: #2271b1; }
.osil-frontend-connect .widefat { width: 100%; border-collapse: collapse; background: #fff; }
.osil-frontend-connect .widefat th,
.osil-frontend-connect .widefat td { border: 1px solid #dcdcde; padding: 10px; text-align: right; }
.osil-one-click-card { border-inline-start: 4px solid #2271b1; }
.osil-seller-hero { border-inline-start-color: #00a32a; }

/* Zoho-style brand connector */
.osil-brand-connect-card { border-inline-start: 4px solid #2271b1; }
.osil-brand-connect-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.osil-brand-connect-head h2 { margin-bottom: 6px; }
.osil-brand-name { background: #f0f6fc; color: #0a4b78; border: 1px solid #c5d9ed; border-radius: 999px; padding: 8px 14px; font-weight: 700; white-space: nowrap; }
.osil-brand-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; direction: ltr; }
.osil-brand-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: #646970; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.osil-brand-icon-facebook, .osil-platform-icon-facebook { background: #1877f2; color: #fff; }
.osil-brand-icon-messenger, .osil-platform-icon-messenger { background: #6b4eff; color: #fff; }
.osil-brand-icon-instagram, .osil-platform-icon-instagram { background: #d62976; color: #fff; }
.osil-brand-icon-telegram, .osil-platform-icon-telegram { background: #229ed9; color: #fff; }
.osil-brand-icon-tiktok, .osil-platform-icon-tiktok { background: #111; color: #fff; }
.osil-brand-icon-x, .osil-platform-icon-x { background: #000; color: #fff; }
.osil-brand-icon-snapchat, .osil-platform-icon-snapchat { background: #fffc00; color: #111; }
.osil-brand-icon-whatsapp, .osil-platform-icon-whatsapp { background: #25d366; color: #fff; }
.osil-zoho-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.osil-zoho-card { min-height: 245px; display: flex; flex-direction: column; }
.osil-zoho-card p:last-child { margin-top: auto; }
.osil-zoho-card .osil-platform-head { margin-bottom: 12px; align-items: center; }
.osil-inline-notice { border-radius: 8px; padding: 12px 14px; margin: 14px 0; border: 1px solid #dcdcde; background: #fff; }
.osil-inline-success { border-color: #8ed19b; background: #edfaef; color: #0a6b22; }
.osil-inline-error { border-color: #e0a5a5; background: #fcf0f1; color: #8a1f11; }
@media (max-width: 782px) {
    .osil-brand-connect-head { display: block; }
    .osil-brand-name { display: inline-block; margin-top: 10px; }
}
