.ensoras-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ensoras-wrap * { box-sizing: border-box; }

.ensoras-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.ensoras-header svg { width: 36px; height: 36px; color: #E8873A; }
.ensoras-header span {
    font-size: 22px;
    font-weight: 700;
    color: #171717;
    letter-spacing: -0.03em;
}

.ensoras-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ensoras-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.ensoras-card.ensoras-card--muted {
    background: #fafafa;
}
.ensoras-card.ensoras-card--muted:hover {
    border-color: #e5e5e5;
    box-shadow: none;
}

.ensoras-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin: 0 0 6px;
    padding: 0;
    letter-spacing: -0.02em;
}
.ensoras-card p.subtitle {
    font-size: 14px;
    color: #737373;
    margin: 0 0 24px;
    padding: 0 !important;
    line-height: 1.6;
}

.ensoras-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a3a3a3;
    margin: 0 0 18px;
    padding: 0;
}
.ensoras-section-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: #E8873A;
    border-radius: 1px;
}

.ensoras-field { margin-bottom: 16px; }
.ensoras-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #404040;
    margin-bottom: 6px;
}
.ensoras-field input[type="text"],
.ensoras-field input[type="email"],
.ensoras-field input[type="password"],
.ensoras-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #171717;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ensoras-field input:focus,
.ensoras-field textarea:focus {
    outline: none;
    border-color: #E8873A;
    box-shadow: 0 0 0 3px rgba(232,135,58,0.15);
}
.ensoras-field .helper {
    font-size: 13px;
    color: #a3a3a3;
    margin-top: 6px;
    line-height: 1.4;
}

.ensoras-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
    text-decoration: none;
}
.ensoras-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ensoras-btn--dark {
    background: #171717;
    color: #fff;
    box-shadow: 0 1px 3px rgba(23,23,23,0.2);
}
.ensoras-btn--dark:hover { background: #2c2c2c; color: #fff; }

.ensoras-btn--brand {
    background: #E8873A;
    color: #0a0a0b;
    box-shadow: 0 1px 3px rgba(232,135,58,0.25);
}
.ensoras-btn--brand:hover { background: #C2650E; color: #0a0a0b; }

.ensoras-btn--outline {
    background: #fff;
    color: #171717;
    border: 1px solid #e5e5e5;
    box-shadow: none;
}
.ensoras-btn--outline:hover {
    background: #fafafa;
    border-color: #d4d4d4;
    color: #171717;
}

.ensoras-btn--ghost {
    background: none;
    color: #737373;
    padding: 0;
    box-shadow: none;
    font-weight: 500;
}
.ensoras-btn--ghost:hover { color: #171717; }

.ensoras-btn--sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.ensoras-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #a3a3a3;
    font-size: 13px;
    font-weight: 500;
}
.ensoras-divider::before,
.ensoras-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.ensoras-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.ensoras-status--connected {
    background: rgba(16,185,129,0.08);
    color: #059669;
}
.ensoras-status--connected::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}
.ensoras-status--wc {
    background: rgba(232,135,58,0.08);
    color: #C2650E;
}
.ensoras-status--wc::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8873A;
    box-shadow: 0 0 0 3px rgba(232,135,58,0.18);
}

.ensoras-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(232,135,58,0.06);
    border: 1px solid rgba(232,135,58,0.15);
    border-radius: 12px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}
.ensoras-info svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #E8873A;
}

.ensoras-project-slug {
    font-size: 14px;
    color: #737373;
    margin: 10px 0 20px;
}
.ensoras-project-slug code {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #171717;
}

.ensoras-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.ensoras-radio label,
.ensoras-checkbox label {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #171717;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 6px 0;
}
.ensoras-radio input[type="radio"],
.ensoras-checkbox input[type="checkbox"] {
    accent-color: #E8873A;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.ensoras-checkbox-desc {
    display: block;
    width: 100%;
    padding-left: 26px;
    font-size: 12px;
    color: #737373;
    margin-top: -4px;
}

.ensoras-readout {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}
.ensoras-readout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
}
.ensoras-readout-row + .ensoras-readout-row {
    border-top: 1px solid #f5f5f5;
}
.ensoras-readout-row .readout-label {
    color: #a3a3a3;
    font-weight: 500;
}
.ensoras-readout-row .readout-value {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-weight: 500;
    color: #171717;
    font-size: 12px;
}

.ensoras-tips {
    padding: 0;
    margin: 0;
    list-style: none;
}
.ensoras-tips li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    line-height: 1.6;
    color: #404040;
}
.ensoras-tips li:last-child { border-bottom: none; padding-bottom: 0; }
.ensoras-tips li:first-child { padding-top: 0; }
.ensoras-tips .tip-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,135,58,0.08);
    border-radius: 6px;
    margin-top: 0;
}
.ensoras-tips .tip-icon svg {
    width: 14px;
    height: 14px;
    color: #E8873A;
}
.ensoras-tips a {
    color: #D4711F;
    text-decoration: underline;
    text-decoration-color: rgba(212,113,31,0.3);
    text-underline-offset: 2px;
}
.ensoras-tips a:hover {
    color: #C2650E;
    text-decoration-color: #C2650E;
}

.ensoras-wc-connect-desc {
    font-size: 14px;
    color: #737373;
    margin: 0 0 14px;
    line-height: 1.6;
}

.ensoras-footer {
    text-align: center;
    padding: 20px 0 28px;
    font-size: 13px;
    color: #a3a3a3;
}
.ensoras-footer a {
    color: #737373;
    text-decoration: underline;
    text-decoration-color: #d4d4d4;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.ensoras-footer a:hover { color: #171717; }

.ensoras-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
}

#ensoras-success-state {
    text-align: center;
    padding: 16px 0;
}
#ensoras-success-state .checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(16,185,129,0.08);
    border-radius: 50%;
    margin-bottom: 16px;
}
#ensoras-success-state .checkmark svg {
    width: 28px;
    height: 28px;
    color: #10b981;
}
#ensoras-success-state h2 {
    text-align: center;
    margin-bottom: 8px;
}
#ensoras-success-state p {
    color: #737373;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
}
#ensoras-success-state .email-note {
    font-size: 13px;
    color: #a3a3a3;
    margin-top: 16px;
}

.ensoras-step-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #171717;
}
.ensoras-step-email-row .ensoras-btn--ghost {
    font-size: 13px;
    margin-left: auto;
    color: #D4711F;
}
.ensoras-step-email-row .ensoras-btn--ghost:hover {
    color: #C2650E;
}

.ensoras-otp-input {
    letter-spacing: 0.3em !important;
    font-size: 20px !important;
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace !important;
    max-width: 200px;
    text-align: center;
    padding: 12px 14px !important;
}

.ensoras-wrap .notice,
.ensoras-wrap .updated,
.ensoras-wrap .error:not(.ensoras-error) { display: none; }


.ensoras-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FFF7ED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8873A;
    flex-shrink: 0;
}
.ensoras-icon-badge svg { width: 18px; height: 18px; }
.ensoras-icon-badge--lg { width: 44px; height: 44px; border-radius: 10px; }
.ensoras-icon-badge--lg svg { width: 24px; height: 24px; }
.ensoras-icon-badge--xl { width: 48px; height: 48px; border-radius: 12px; }
.ensoras-icon-badge--xl svg { width: 26px; height: 26px; }
.ensoras-icon-badge--bordered { background: #fff; border: 1px solid #e3e3e3; }

.ensoras-hero-tagline {
    font-size: 24px;
    font-weight: 700;
    color: #171717;
    margin: 14px 0 8px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.ensoras-hero-desc {
    font-size: 15px;
    color: #737373;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 600px;
}
.ensoras-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ensoras-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.ensoras-feature-card {
    padding: 24px;
}
.ensoras-feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    margin: 14px 0 6px;
    padding: 0;
}
.ensoras-feature-card p {
    font-size: 13px;
    color: #737373;
    line-height: 1.55;
    margin: 0;
}

.ensoras-steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}
.ensoras-step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ensoras-step-number {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: #FFF7ED;
    color: #E8873A;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.ensoras-step-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 2px;
}
.ensoras-step-content p {
    font-size: 13px;
    color: #737373;
    line-height: 1.5;
    margin: 0;
}

.ensoras-expand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}
.ensoras-expand-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ensoras-expand-item svg {
    width: 20px;
    height: 20px;
    color: #E8873A;
    flex-shrink: 0;
    margin-top: 2px;
}
.ensoras-expand-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 2px;
}
.ensoras-expand-item p {
    font-size: 13px;
    color: #737373;
    line-height: 1.5;
    margin: 0;
}

.ensoras-resource-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.ensoras-resource-links a {
    color: #D4711F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.ensoras-resource-links a:hover {
    color: #C2650E;
    text-decoration: underline;
}
.ensoras-resource-links a svg {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: -1px;
}

.ensoras-progress-card {
    margin-bottom: 16px;
}
.ensoras-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.ensoras-progress-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #171717;
}
.ensoras-progress-step-desc {
    font-size: 13px;
    color: #a3a3a3;
}
.ensoras-progress-bar {
    height: 4px;
    background: #f5f5f5;
    border-radius: 2px;
    overflow: hidden;
}
.ensoras-progress-fill {
    height: 100%;
    background: #E8873A;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.ensoras-registration-layout,
.ensoras-manual-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: start;
}
.ensoras-registration-sidebar {
    position: sticky;
    top: 48px;
}
.ensoras-registration-sidebar .ensoras-card {
    margin-bottom: 16px;
}

.ensoras-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ensoras-benefit-item {
    display: flex;
    gap: 10px;
    align-items: center;
}
.ensoras-benefit-check {
    width: 20px;
    height: 20px;
    color: #22c55e;
    flex-shrink: 0;
}
.ensoras-benefit-item span {
    font-size: 14px;
    color: #171717;
    line-height: 1.4;
}

.ensoras-security-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #737373;
    line-height: 1.5;
}
.ensoras-security-note svg {
    width: 16px;
    height: 16px;
    color: #a3a3a3;
    flex-shrink: 0;
    margin-top: 1px;
}

.ensoras-credential-help h4 {
    font-size: 13px;
    font-weight: 600;
    color: #171717;
    margin: 0 0 4px;
}
.ensoras-credential-help p {
    font-size: 13px;
    color: #737373;
    line-height: 1.5;
    margin: 0;
}
.ensoras-credential-help code {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    background: #f5f5f5;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.ensoras-credential-help hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 14px 0;
}

.ensoras-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #737373;
    text-decoration: none;
    margin-bottom: 16px;
    cursor: pointer;
}
.ensoras-back-link:hover { color: #171717; }
.ensoras-back-link svg { width: 16px; height: 16px; }


.ensoras-status-row {
    display: flex;
    gap: 14px;
    align-items: center;
}
.ensoras-status-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: #171717;
    margin: 0 0 2px;
    padding: 0;
}

.ensoras-card-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 20px 0;
}

.ensoras-status-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ensoras-detail-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #a3a3a3;
    margin-bottom: 4px;
}
.ensoras-detail-value {
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #171717;
    word-break: break-all;
}

.ensoras-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.ensoras-action-card {
    padding: 24px;
}
.ensoras-action-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    margin: 14px 0 6px;
    padding: 0;
}
.ensoras-action-card p {
    font-size: 13px;
    color: #737373;
    line-height: 1.55;
    margin: 0 0 16px;
}

.ensoras-green-dot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.ensoras-green-dot-item {
    display: flex;
    gap: 10px;
    align-items: center;
}
.ensoras-green-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #22c55e;
    flex-shrink: 0;
}
.ensoras-green-dot-item span {
    font-size: 13px;
    color: #404040;
    line-height: 1.4;
}

.ensoras-widget-settings-section {
    padding-top: 4px;
}

@media (max-width: 782px) {
    .ensoras-wrap { max-width: 100%; padding: 20px 12px; }
    .ensoras-feature-grid { grid-template-columns: 1fr; }
    .ensoras-expand-grid { grid-template-columns: 1fr; }
    .ensoras-registration-layout,
    .ensoras-manual-layout { grid-template-columns: 1fr; }
    .ensoras-registration-sidebar { display: none; }
    .ensoras-action-grid { grid-template-columns: 1fr; }
    .ensoras-status-details { grid-template-columns: 1fr; }
    .ensoras-hero-tagline { font-size: 20px; }
    .ensoras-resource-links { flex-direction: column; gap: 10px; }
}
