
.nueb-app {
    --nueb-primary: #1b567f;
    --nueb-dark: #123e5c;
    --nueb-soft: #eef6fb;
    --nueb-border: #c7d6e0;
    --nueb-text: #1f2933;
    --nueb-muted: #5e6b75;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--nueb-text);
}

.nueb-app * { box-sizing: border-box; }

.nueb-shell {
    max-width: 850px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid var(--nueb-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0,0,0,.08);
}

.nueb-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px 28px;
    background: var(--nueb-soft);
    border-bottom: 1px solid var(--nueb-border);
}

.nueb-brand {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--nueb-primary);
    color: #fff;
    font-size: 29px;
    font-weight: 700;
    flex: 0 0 auto;
}

.nueb-kicker {
    margin: 0 0 4px;
    color: var(--nueb-primary);
    font-weight: 700;
}

.nueb-header h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.12;
}

.nueb-main { padding: 30px 28px; }

.nueb-card {
    border: 1px solid var(--nueb-border);
    border-radius: 16px;
    padding: 26px;
    background: #fff;
}

.nueb-progress {
    height: 12px;
    border-radius: 999px;
    background: #e7edf1;
    overflow: hidden;
    margin-bottom: 22px;
}

.nueb-progress > span {
    display: block;
    height: 100%;
    background: var(--nueb-primary);
}

.nueb-step {
    color: var(--nueb-muted);
    font-size: 15px;
    margin: 0 0 10px;
}

.nueb-question {
    font-size: clamp(23px, 3.7vw, 31px);
    line-height: 1.25;
    margin: 0 0 12px;
}

.nueb-help {
    font-size: 17px;
    line-height: 1.5;
    color: var(--nueb-muted);
    margin: 0 0 22px;
}

.nueb-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.nueb-input {
    width: 100%;
    min-height: 56px;
    border: 2px solid #94a8b7;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 20px;
    background: #fff;
}

.nueb-mic {
    min-width: 155px;
    border: 2px solid var(--nueb-primary);
    border-radius: 11px;
    background: #fff;
    color: var(--nueb-primary);
    font-size: 17px;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
}

.nueb-date-help {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #eef6fb;
    color: var(--nueb-muted);
}

.nueb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.nueb-button {
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    min-height: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.nueb-button--primary {
    background: var(--nueb-primary);
    color: #fff;
}

.nueb-button--secondary {
    background: #e9eef2;
    color: #24313b;
}

.nueb-button--voice {
    background: #fff;
    color: var(--nueb-primary);
    border: 2px solid var(--nueb-primary);
}

.nueb-notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f2f7fa;
    line-height: 1.45;
}

.nueb-notice--error {
    background: #fff0f0;
    color: #8b1f1f;
}

.nueb-summary {
    display: grid;
    gap: 10px;
}

.nueb-summary-row {
    padding: 12px 14px;
    border: 1px solid var(--nueb-border);
    border-radius: 10px;
}

.nueb-summary-row strong {
    display: block;
    margin-bottom: 4px;
}

.nueb-signature-card,
.nueb-pdf-preview-card,
.nueb-email-card {
    margin-top: 24px;
    padding: 20px;
    border: 2px solid var(--nueb-primary);
    border-radius: 14px;
    background: #f7fbfd;
}

.nueb-signature-card h3,
.nueb-pdf-preview-card h3,
.nueb-email-card h3 {
    margin: 0 0 12px;
    font-size: 23px;
}

.nueb-signature-photo-help {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #b8cbd8;
    border-radius: 12px;
    background: #fff;
}

.nueb-signature-photo-help h4 {
    margin: 0 0 14px;
    font-size: 20px;
}

.nueb-signature-photo-help-list {
    display: grid;
    gap: 10px;
}

.nueb-signature-photo-help-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid #d5e0e7;
    border-radius: 10px;
}

.nueb-signature-photo-help-item--important {
    border: 2px solid var(--nueb-primary);
    background: #eef7fc;
}

.nueb-photo-help-icon { font-size: 25px; }

.nueb-signature-photo-help-item strong {
    display: block;
    margin-bottom: 3px;
}

.nueb-signature-photo-help-item span:not(.nueb-photo-help-icon),
.nueb-signature-status,
.nueb-signature-privacy,
.nueb-email-note {
    color: var(--nueb-muted);
    line-height: 1.45;
}

.nueb-signature-photo-read { margin-top: 12px; }

.nueb-signature-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 13px 18px;
    border: 2px solid var(--nueb-primary);
    border-radius: 11px;
    color: var(--nueb-primary);
    background: #fff;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
}

.nueb-signature-upload-button input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.nueb-signature-preview-wrap { margin-top: 18px; }

.nueb-signature-preview-box {
    margin-top: 8px;
    min-height: 120px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9cad5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.nueb-signature-preview-box img {
    max-width: 100%;
    max-height: 150px;
}

.nueb-signature-size-title {
    margin: 18px 0 10px;
    font-weight: 700;
}

.nueb-signature-size-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nueb-size-choice {
    min-height: 48px;
    border: 2px solid var(--nueb-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--nueb-primary);
    font-weight: 700;
    cursor: pointer;
}

.nueb-size-choice.is-selected {
    background: var(--nueb-primary);
    color: #fff;
}

.nueb-confirm {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 16px;
    border: 2px solid var(--nueb-border);
    border-radius: 12px;
    background: #fafcfd;
    font-size: 18px;
    line-height: 1.4;
}

.nueb-confirm input {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.nueb-pdf-preview-page,
.nueb-pdf-preview-zoom {
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #b9cad5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.nueb-pdf-preview-page img,
.nueb-pdf-preview-zoom img {
    display: block;
    width: 100%;
    height: auto;
}

.nueb-pdf-preview-card h4 {
    margin: 20px 0 8px;
    font-size: 20px;
}

.nueb-pdf-open-link {
    display: inline-flex;
    margin-top: 14px;
    text-decoration: none;
}

.nueb-button--email {
    background: #176b3a;
    color: #fff;
}

.nueb-button--email:disabled {
    background: #d7dee3 !important;
    color: #596771 !important;
    cursor: not-allowed;
    opacity: 1;
}

.nueb-email-note {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #cbd8e0;
    border-radius: 10px;
    background: #fff;
}

.nueb-email-note--important {
    border-color: #d6ad55;
    background: #fff8e8;
    color: #5b4921;
}

.nueb-footer {
    border-top: 1px solid var(--nueb-border);
    padding: 18px 28px;
    color: var(--nueb-muted);
    font-size: 14px;
}

.nueb-footer p { margin: 3px 0; }

@media (max-width: 600px) {
    .nueb-shell {
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .nueb-header,
    .nueb-main,
    .nueb-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nueb-card { padding: 20px 16px; }

    .nueb-input-row,
    .nueb-signature-size-buttons {
        grid-template-columns: 1fr;
    }

    .nueb-mic,
    .nueb-signature-upload-button,
    .nueb-signature-photo-read,
    .nueb-button--email,
    .nueb-pdf-open-link,
    .nueb-button {
        width: 100%;
    }

    .nueb-actions {
        display: grid;
    }
}
