.yps-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-right: 20px;
}

.yps-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin: 24px 0 28px;
}

.yps-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.yps-hero h1 {
    margin: 14px 0 8px;
    font-size: 34px;
    line-height: 1.1;
}

.yps-hero p {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.yps-account-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
    padding: 14px 16px;
    border: 1px solid #dbe3f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.yps-account-pill strong,
.yps-account-pill span {
    display: block;
}

.yps-account-pill span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.yps-message {
    display: none;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #dbe3f4;
    background: #fff;
    color: #0f172a;
}

.yps-message.is-visible {
    display: block;
}

.yps-message.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.yps-message.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.yps-auth-shell {
    max-width: 820px;
}

.yps-auth-card,
.yps-config-card {
    background: #fff;
    border: 1px solid #dbe3f4;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.yps-tabs {
    display: flex;
    padding: 12px 12px 0;
    gap: 8px;
}

.yps-tab {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 14px 14px 0 0;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

.yps-tab.active {
    border-color: #dbe3f4;
    border-bottom-color: #fff;
    background: #fff;
    color: #0f172a;
}

.yps-tab-panel {
    display: none;
    padding: 24px;
}

.yps-tab-panel.active {
    display: block;
}

.yps-form-grid {
    display: grid;
    gap: 18px;
}

.yps-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.yps-field input.regular-text {
    width: 100%;
    max-width: none;
    min-height: 44px;
    border-color: #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
}

.yps-field input.regular-text:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.yps-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.yps-form.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.yps-widget-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.yps-widget-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dbe3f4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.yps-widget-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-bottom: 1px solid #e2e8f0;
}

.yps-widget-preview svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.yps-widget-preview--locatemystore svg {
    color: #059669;
}

.yps-widget-preview--slotflow svg {
    color: #4f46e5;
}

.yps-widget-preview-copy strong,
.yps-widget-preview-copy span {
    display: block;
}

.yps-widget-preview-copy span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.yps-widget-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.yps-widget-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yps-widget-card-head h2 {
    margin: 0;
    font-size: 22px;
}

.yps-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yps-status-badge.is-active {
    background: #ecfdf5;
    color: #047857;
}

.yps-widget-card-body p {
    color: #475569;
    line-height: 1.65;
}

.yps-widget-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.yps-widget-actions {
    margin-bottom: 12px;
}

.yps-widget-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.yps-widget-meta code {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 12px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 12px;
    word-break: break-all;
}

.yps-widget-card .button {
    margin-top: auto;
}

.yps-config-card {
    padding: 24px;
}

.yps-config-card-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.yps-config-card-head p {
    margin: 0 0 24px;
    color: #475569;
}

.yps-config-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.yps-placement-card {
    margin-top: 24px;
    padding: 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.yps-placement-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.spinner.is-active {
    visibility: visible;
}

@media (min-width: 900px) {
    .yps-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .yps-widget-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .yps-wrap {
        padding-right: 10px;
    }

    .yps-hero {
        flex-direction: column;
    }

    .yps-account-pill {
        width: 100%;
        min-width: 0;
    }
}
