.create-app-prompt-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-300);
    background: #fff;
    transition: border-color 0.2s;
    border: 1px solid var(--inputs_border_color);
}
.create-app-prompt-wrapper:focus-within {
    border-color: var(--primary_color);
}
.create-app-prompt-input {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.75rem 1rem;
    font-size: var(--component_font_size_lg);
    line-height: 1.3333333;
    color: #010B40;
    min-height: 6rem;
    max-height: 12rem;
    outline: none;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}
.create-app-prompt-input:empty::before {
    content: attr(data-placeholder);
    color: #c0c0c0;
    opacity: 1;
    pointer-events: none;
}
.create-app-prompt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.625rem;
    border-top: 1px solid var(--gray-300);
    background: transparent;
    border-radius: 0 0 0.75rem 0.75rem;
}
.create-app-prompt-footer-left,
.create-app-prompt-footer-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.create-app-btn-action {
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--lighter_text_color);
    box-shadow: none !important;
}
.create-app-btn-action:hover:not(.disabled) {
    color: var(--primary_color);
    background: var(--primary_color_lighter_10);
}
.create-app-btn-action.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.create-app-btn-action.recording {
    color: var(--white-color);
    background: var(--danger_color);
    animation: create-app-pulse-mic 1s infinite;
}
@keyframes create-app-pulse-mic {
    0%, 100% { box-shadow: 0 0 0 0 var(--danger_color_lighter_40); }
    50% { box-shadow: 0 0 0 6px transparent; }
}
.create-app-btn-action i {
    font-size: 0.875rem;
}
.create-app-btn-send {
    background: var(--primary_color);
    border: none;
    border-radius: 0.5rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    color: var(--white-color);
}
.create-app-btn-send:hover {
    filter: brightness(1.1);
}
.create-app-btn-send:active {
    transform: scale(0.95);
}
.create-app-btn-send i {
    font-size: 0.75rem;
    color: #fff;
}
.create-app-btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.create-app-btn-send-label {
    font-size: 0.85rem;
    line-height: 1;
    color: white;
}

@media (max-width: 767px) {
    .create-app-btn-send {
        width: 2rem;
        min-width: 0;
        padding: 0;
    }
    .create-app-btn-send-label {
        display: none;
    }
}
.create-app-attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
    max-height: 10rem;
    overflow-y: auto;
}
.create-app-attachment-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}
.create-app-attachment-item img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.25rem;
}
.create-app-attachment-item .create-app-attachment-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    color: var(--white-color);
    font-size: 1.25rem;
}
.create-app-attachment-item .create-app-attachment-icon-pdf {
    background: var(--danger_color);
}
.create-app-attachment-item .create-app-attachment-uploading {
    color: var(--primary_color);
    font-size: 0.625rem;
}
.create-app-attachment-item .create-app-btn-remove-attachment {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--danger_color);
    color: var(--white-color);
    border: none;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
[dir="rtl"] .create-app-attachment-item .create-app-btn-remove-attachment {
    right: auto;
    left: -0.375rem;
}
.create-app-prompt-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
}
.create-app-prompt-row .create-app-prompt-input {
    padding: 0;
    flex: 1;
    min-width: 0;
    min-height: 2.5rem;
    border-radius: 0;
}
.create-app-template-inline-thumb {
    flex-shrink: 0;
    width: 7.2rem;
    height: 4.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    background: #fff;
    position: relative;
    direction: ltr;
    transform: rotate(-5deg);
    transform-origin: center center;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.1);
}
.create-app-template-inline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #fff;
}
.create-app-template-card .gs-item-image-container {
    position: relative;
    direction: ltr;
}
.create-app-template-id-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    pointer-events: none;
}
.create-app-template-card .gs-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: #fff;
}
.create-app-template-screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #54458C;
    color: #fff;
    font-size: 2rem;
}
.create-app-template-hover-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.create-app-template-card:hover .create-app-template-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.modal.s123-modal .modal-body.create-app-template-preview-modal-body {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    padding: 0;
    height: 80vh;
    max-height: 80vh;
    overflow: hidden;
}

.create-app-template-preview-stripe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    background: var(--pageBackground);
    border-top: 1px solid var(--inputs_border_color, #dde1e6);
}

.create-app-template-preview-stripe-text {
    font-size: var(--component_font_size_sm, 0.875rem);
    line-height: 1.4;
    color: var(--text-primary, #010B40);
}

.create-app-template-preview-stripe-text i {
    margin-right: 0.375rem;
    color: var(--primary_color);
}

.create-app-template-preview-stripe-name {
    font-weight: 600;
}

.create-app-template-preview-iframe-wrap {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--pageBackground);
    overflow: hidden;
}

.create-app-template-preview-iframe-wrap.is-desktop-scaled iframe.create-app-template-preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    flex: none;
    transform-origin: top left;
    max-width: none;
    max-height: none;
}
html[dir="rtl"] .create-app-template-preview-iframe-wrap.is-desktop-scaled iframe.create-app-template-preview-iframe {
    left: auto;
    right: 0;
    transform-origin: top right;
}

.create-app-template-preview-iframe-wrap.is-loading iframe.create-app-template-preview-iframe {
    visibility: hidden;
}

.create-app-template-preview-iframe-loader {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: var(--pageBackground);
    z-index: 1;
}

.create-app-template-preview-iframe-wrap.is-loading .create-app-template-preview-iframe-loader {
    display: flex;
}

.create-app-template-preview-iframe-loader .interfaceLoad-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.create-app-template-preview-iframe-loader .interfaceLoad-spinner-wrapper {
    position: relative;
    width: 6.25rem;
    height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-app-template-preview-iframe-loader .interfaceLoad-spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    z-index: 2;
}

.create-app-template-preview-iframe-loader .interfaceLoad-spinner {
    position: absolute;
    width: 6.25rem;
    height: 6.25rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid var(--primary_color, #3498db);
    border-radius: 50%;
    animation: create-app-template-preview-interfaceLoad-spin 1s linear infinite;
}

@keyframes create-app-template-preview-interfaceLoad-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.create-app-template-preview-modal-body iframe.create-app-template-preview-iframe {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: none;
}

@media (max-width: 768px) {
    .s123-modal .modal-dialog .modal-content .modal-body.create-app-template-preview-modal-body {
        height: 100%;
        max-height: none;
    }
    .s123-modal .modal-dialog .modal-content .modal-body.create-app-template-preview-modal-body > .create-app-template-preview-iframe-wrap:not(#moduleMobileBottomMenu) {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .s123-modal .modal-dialog .modal-content .modal-body.create-app-template-preview-modal-body > .create-app-template-preview-stripe:not(#moduleMobileBottomMenu) {
        flex: 0 0 auto !important;
        height: auto !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
    }
    .s123-modal .modal-dialog .modal-content .modal-body.create-app-template-preview-modal-body iframe.create-app-template-preview-iframe {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        border: none !important;
    }
}

.app-builder-create-category-tabs {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
}
.app-builder-signup-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    min-width: 0;
    margin-bottom: 0.75rem;
}
.app-builder-signup-title-row .app-builder-signup-title-text {
    flex: 0 0 auto;
    margin: 0;
}
/* Never wraps - overflowing category tabs are moved into the More dropdown by JS */
.app-builder-category-tabs-content-slot {
    width: 100%;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
}
.app-builder-category-tab-overflow {
    display: none !important;
}
.app-builder-create-category-tabs.ui-slide-tab-selector-container {
    padding: 0;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}
.app-builder-create-category-tabs.ui-slide-tab-selector-container::-webkit-scrollbar {
    display: none;
}
.app-builder-create-category-tabs .ui-slide-tab-selector {
    align-items: stretch;
}
.app-builder-create-category-tabs .ui-slide-tab-selector-slider {
    pointer-events: none;
}
.app-builder-category-more-tab {
    flex: 0 0 auto;
    display: none;
    position: relative;
    z-index: 1;
}
.app-builder-category-more-tab.is-visible {
    display: inline-flex;
}
.app-builder-category-more-tab.is-active,
.app-builder-category-more-group.open {
    z-index: 20;
}
.app-builder-category-more-group {
    display: inline-flex;
    height: 100%;
    margin: 0;
    position: relative;
}
.app-builder-category-more-group .app-builder-category-more-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
}
html[dir="rtl"] .app-builder-category-more-group .app-builder-category-more-btn {
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.app-builder-category-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 2rem;
    padding: 0 0.625rem;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 2;
    border-top-right-radius: 999em;
    border-bottom-right-radius: 999em;
}
html[dir="rtl"] .app-builder-category-more-toggle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 999em;
    border-bottom-left-radius: 999em;
}
.app-builder-category-more-tab.is-active .app-builder-category-more-toggle,
.app-builder-category-more-tab .app-builder-category-more-btn.active ~ .app-builder-category-more-toggle {
    color: #fff;
}
.app-builder-category-more-group .app-builder-category-more-btn,
.app-builder-category-more-group .app-builder-category-more-toggle {
    position: relative;
    z-index: 2;
}
.app-builder-category-more-menu {
    display: none;
    min-width: 10rem;
    margin: 0;
    padding: 0.375rem 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}
.app-builder-category-more-group.open .app-builder-category-more-menu {
    display: block;
}
.app-builder-category-more-menu > li > a.app-builder-category-more-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-800, #1f2937);
    text-decoration: none;
    white-space: nowrap;
}
.app-builder-category-more-menu > li > a.app-builder-category-more-link:hover,
.app-builder-category-more-menu > li > a.app-builder-category-more-link:focus {
    background-color: var(--gray-100, #f3f4f6);
    text-decoration: none;
}
.app-builder-category-more-menu .app-builder-category-more-link.is-active {
    font-weight: 600;
}
.app-builder-create-picker-mobile {
    display: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.625rem;
}
.app-builder-create-picker-mobile-group {
    margin-bottom: 0;
}
.app-builder-create-subcategory-mobile {
    display: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}
.app-builder-create-subcategory-mobile.is-visible {
    display: flex;
    justify-content: flex-end;
}
.app-builder-create-subcategory-mobile-group {
    margin-bottom: 0;
    width: auto;
    max-width: 100%;
}
.app-builder-create-subcategory-select {
    width: auto;
    min-width: 10rem;
    max-width: 14rem;
}
.app-builder-create-subcategory-mobile .ts-wrapper,
.app-builder-create-subcategory-mobile .uiRichSelect {
    width: auto;
    min-width: 10rem;
    max-width: 14rem;
}
.app-builder-create-subcategory-mobile .ts-control {
    min-height: 45px;
}
.app-builder-create-subcategory-tabs {
    display: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
}
.app-builder-create-subcategory-tabs.is-visible {
    display: flex;
}
.app-builder-subcategory-tabs-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}
.app-builder-subcategory-tab-btn {
    flex: 0 0 auto;
    border: none;
    background-color: transparent;
    border-radius: 999em;
    padding: 0.375rem 0.75rem;
    color: var(--lighter_text_color);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
}
.app-builder-subcategory-tab-btn:hover,
.app-builder-subcategory-tab-btn:focus {
    background-color: var(--gray-100, #f3f4f6);
    color: var(--gray-800, #1f2937);
}
.app-builder-subcategory-tab-btn.active {
    background-color: var(--gray-100, #f3f4f6);
    color: var(--gray-800, #1f2937);
    font-weight: 500;
}
.app-builder-subcategory-tab-overflow {
    display: none !important;
}
.app-builder-subcategory-more-tab {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}
.app-builder-subcategory-more-group {
    position: relative;
}
.app-builder-subcategory-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background-color: transparent;
    border-radius: 999em;
    padding: 0.375rem 0.75rem;
    color: var(--lighter_text_color);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
}
.app-builder-subcategory-more-btn:hover,
.app-builder-subcategory-more-btn:focus {
    background-color: var(--gray-100, #f3f4f6);
    color: var(--gray-800, #1f2937);
}
.app-builder-subcategory-more-btn.active,
.app-builder-subcategory-more-group.open .app-builder-subcategory-more-btn {
    background-color: var(--gray-100, #f3f4f6);
    color: var(--gray-800, #1f2937);
    font-weight: 500;
}
.app-builder-subcategory-more-menu {
    display: none;
    min-width: 10rem;
    margin: 0;
    padding: 0.375rem 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}
.app-builder-subcategory-more-group.open .app-builder-subcategory-more-menu {
    display: block;
}
.app-builder-subcategory-more-menu > li > a.app-builder-subcategory-more-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-800, #1f2937);
    text-decoration: none;
    white-space: nowrap;
}
.app-builder-subcategory-more-menu > li > a.app-builder-subcategory-more-link:hover,
.app-builder-subcategory-more-menu > li > a.app-builder-subcategory-more-link:focus {
    background-color: var(--gray-100, #f3f4f6);
    text-decoration: none;
}
.app-builder-subcategory-more-menu .app-builder-subcategory-more-link.is-active {
    font-weight: 600;
}
.app-builder-create-picker-mobile .ts-wrapper,
.app-builder-create-picker-mobile .uiRichSelect {
    width: 100%;
    max-width: 100%;
}
.app-builder-create-picker-mobile .ts-control {
    min-height: 45px;
}
.create-app-header-language-select.ts-wrapper,
.create-app-header-language-item .ts-wrapper {
    width: auto;
    min-width: 7rem;
    max-width: 100%;
}
/* Free Text is a plain text action next to the tabs, not a boxed tab */
.app-builder-create-mode-tabs {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    height: 45px;
    min-height: 45px;
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
    box-sizing: border-box;
}
.app-builder-free-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background-color: transparent;
    color: var(--primary_color);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
}
.app-builder-free-text-btn:hover,
.app-builder-free-text-btn:focus {
    color: var(--primary_color);
    text-decoration: underline;
}
.app-builder-free-text-btn.active {
    background-color: transparent;
    color: var(--primary_color);
    font-weight: 600;
    text-decoration: underline;
}
.app-builder-free-text-btn-icon {
    font-size: 0.875rem;
}
.app-builder-create-category-tabs .ui-slide-tab-selector {
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: 45px;
    min-height: 45px;
    padding: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: inline-flex;
    scrollbar-width: none;
}
.app-builder-create-category-tabs .ui-slide-tab-selector {
    overflow: visible;
}
.app-builder-create-category-tabs .ui-slide-tab-selector::-webkit-scrollbar {
    display: none;
}
.app-builder-create-category-tabs .ui-slide-tab-selector-button {
    flex: 0 0 auto;
    min-width: 0;
    height: 100%;
    padding: 0.5rem 2.5rem;
    line-height: 1.25;
    font-size: 0.875rem;
}
/*
 * Template picker grid - cap at 3 per row so thumbnails grow with available
 * width instead of packing in more, smaller cards. Overrides the generic
 * .grid-system-items-select rules from fullCSS.css for this picker only.
 */
.app-builder-create-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}
.app-builder-create-template-grid .gs-item-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
@media (max-width: 991px) {
    .app-builder-create-template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .app-builder-category-tabs-content-slot {
        display: none !important;
    }
    .app-builder-create-subcategory-tabs {
        display: none !important;
    }
    .app-builder-create-picker-mobile {
        display: block;
    }
    .app-builder-create-subcategory-mobile.is-visible {
        margin-bottom: 0.625rem;
    }
    .app-builder-create-subcategory-mobile-group,
    .app-builder-create-subcategory-mobile .ts-wrapper,
    .app-builder-create-subcategory-mobile .uiRichSelect {
        width: 100%;
        max-width: 100%;
    }
    .app-builder-create-subcategory-select {
        width: 100%;
        max-width: 100%;
    }
    .app-builder-create-template-spacer {
        display: none;
    }
}
@media (min-width: 768px) {
    .app-builder-create-subcategory-mobile {
        display: none !important;
    }
}
@media (min-width: 992px) {
    .app-builder-create-picker-mobile {
        display: none !important;
    }
}
@media (max-width: 575px) {
    .app-builder-create-template-grid {
        grid-template-columns: 1fr;
    }
}
.create-app-free-text-describe-container {
    margin-top: 0.625rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
/*
 * Shared white box for the describe step (createApp.php + signup wizard).
 * Signup pages do not load the full manager CSS bundle, so these rules
 * ensure the widget shell looks identical on both surfaces.
 */
.app-builder-describe-widget-box.in-box-widget {
    width: 100%;
    margin: 0;
}
.app-builder-describe-widget-box .widget-box.static {
    padding: 0;
    margin: 0;
    border: 1px solid var(--gray-300, #dee2e6);
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.app-builder-describe-widget-box .widget-body {
    background-color: #fff !important;
    border-radius: 0.5rem;
}
.app-builder-describe-widget-box .widget-main,
.app-builder-describe-widget-box .app-builder-describe-widget-main {
    padding: 1rem;
}
.app-builder-describe-box-title {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.app-builder-describe-widget-slot {
    width: 100%;
}
.app-builder-describe-step-col {
    margin-top: 0.9375rem;
}
#describe-block .form-required-asterisk,
.app-builder-describe-widget-box .form-required-asterisk {
    color: var(--danger_color);
    font-size: 0.85em;
    font-weight: 600;
    vertical-align: top;
}
.app-builder-describe-wizard-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300, #dee2e6);
}
.appBuilderSignupPage .step2 .app-builder-describe-step-col {
    padding: 0 92px 92px 92px;
}
@media (max-width: 767px) {
    .appBuilderSignupPage .step2 .app-builder-describe-step-col {
        padding: 0 1.25rem 2.5rem 1.25rem;
    }
}
.create-app-quick-inserts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 4.375rem;
}
.create-app-quick-inserts .create-app-quick-insert-btn {
    padding: 1rem;
    flex-shrink: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.create-app-quick-inserts.is-loading .create-app-quick-insert-btn {
    display: none;
}
.create-app-quick-inserts.is-loading::after {
    content: "\f110";
    display: inline-block;
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary_color);
    animation: create-app-quick-inserts-spin 1s linear infinite;
}
.create-app-quick-inserts.is-switching .create-app-quick-insert-btn {
    opacity: 0;
    transform: translateY(0.25rem);
}
@keyframes create-app-quick-inserts-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.create-app-header-language-item {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}
.create-app-header-language-select {
    width: auto;
    min-width: 7rem;
    max-width: 100%;
}
.create-app-header-language-select.ts-wrapper,
.create-app-header-language-item .ts-wrapper {
    min-width: 7rem;
}
@media (max-width: 767px) {
    .create-app-header-language-item {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    .create-app-header-language-select {
        flex: 1;
        width: 100%;
    }
}

/* Attachment type icons in the preview tray (extends .create-app-attachment-icon) */
.create-app-attachment-item .create-app-attachment-icon-video {
    background: var(--info_color);
}
.create-app-attachment-item .create-app-attachment-icon-audio {
    background: var(--warning_color);
}
.create-app-attachment-item .create-app-attachment-icon-document {
    background: var(--primary_color);
}
.create-app-attachment-item .create-app-attachment-icon-zip {
    background: var(--dark-color);
}
.create-app-attachment-item .create-app-attachment-icon-other {
    background: var(--gray-500);
}

.create-app-template-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--gray-300);
}
.create-app-template-summary-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}
.create-app-template-summary-thumb-wrap {
    flex-shrink: 0;
    width: 5.5rem;
    height: 3.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    background: var(--white-color);
}
.create-app-template-summary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.create-app-template-summary-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.125rem;
}
.create-app-template-summary-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}
.create-app-change-template-link {
    flex-shrink: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    align-self: center;
}
.create-app-start-choice-section {
    padding-top: 0.25rem;
}
.create-app-start-choice-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.create-app-start-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.create-app-start-choice-buttons .btn {
    flex: 1 1 0;
    min-width: 12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.create-app-start-note {
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.45;
}
.create-app-prompt-section.is-hidden {
    display: none !important;
}
@media (max-width: 575.98px) {
    .create-app-start-choice-buttons {
        flex-direction: column;
    }
    .create-app-start-choice-buttons .btn {
        width: 100%;
        min-width: 0;
    }
    .create-app-template-summary {
        flex-direction: column;
        align-items: stretch;
    }
    .create-app-change-template-link {
        align-self: flex-start;
    }
}

/* Phone template picker. Desktop and tablet keep the tab and select layout. */
html[data-device="mobile"] body:has(.create-app-m-picker),
html[data-device="mobile"] #main-container:has(.create-app-m-picker) {
    width: 100%;
    max-width: 100%;
}

html[data-device="mobile"] .page-content:has(.create-app-m-picker) {
    padding-top: 0;
    padding-left: var(--m-space-3);
    padding-right: var(--m-space-3);
}

html[data-device="mobile"] #step-templates > .row {
    margin-left: 0;
    margin-right: 0;
}

html[data-device="mobile"] #step-templates > .row > [class*="col-"] {
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

html[data-device="mobile"] .create-app-m-picker {
    min-width: 0;
    max-width: 100%;
}

html[data-device="mobile"] .create-app-m-picker .m-chips {
    /* Same side edges as the describe button. The row still scrolls inside that width. */
    width: calc(100% + (var(--m-space-2) * 2));
    max-width: none;
    min-width: 0;
    margin-inline: calc(var(--m-space-2) * -1);
    padding-top: var(--m-space-1);
    padding-bottom: var(--m-space-1);
    padding-inline: 0;
    box-sizing: border-box;
}

html[data-device="mobile"] .create-app-m-picker .m-chips.is-solid .m-chip {
    min-height: 2.25rem;
    padding: 0 var(--m-space-3);
    font-size: var(--m-font-md);
    font-weight: 500;
}

html[data-device="mobile"] .page-content:has(.create-app-m-picker) .global-page-header {
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

html[data-device="mobile"] .page-content:has(.create-app-m-picker) .global-page-header > .item,
html[data-device="mobile"] .page-content:has(.create-app-m-picker) .global-page-header .item-right {
    display: block;
    margin: 0;
}

html[data-device="mobile"] .page-content:has(.create-app-m-picker) .global-page-header .item-right {
    display: none;
}

html[data-device="mobile"] .page-content:has(.create-app-m-picker) .global-page-header-title > .item > h1 {
    margin: 0 0 var(--m-space-4);
    line-height: 2;
}

html[data-device="mobile"] .page-content:has(.create-app-m-picker) #step-templates {
    margin-top: 0;
}

html[data-device="mobile"] .create-app-header-title-text {
    color: var(--primary_color, #0d6efd);
    font-size: 1.35rem;
    font-weight: 700;
}

html[data-device="mobile"] .app-builder-category-tabs-content-slot,
html[data-device="mobile"] .app-builder-create-subcategory-tabs,
html[data-device="mobile"] .app-builder-create-picker-mobile,
html[data-device="mobile"] .app-builder-create-subcategory-mobile,
html[data-device="mobile"] .app-builder-create-mode-tabs,
html[data-device="mobile"] .app-builder-create-template-spacer {
    display: none !important;
}

html[data-device="mobile"] .create-app-m-describe {
    display: flex;
    align-items: center;
    gap: var(--m-space-3);
    box-sizing: border-box;
    width: calc(100% + (var(--m-space-2) * 2));
    min-height: 4.75rem;
    margin: 0 calc(var(--m-space-2) * -1) var(--m-space-2);
    padding: var(--m-space-4);
    border: 0;
    border-radius: var(--m-radius-sm);
    background: var(--primary_color, #0d6efd);
    color: #fff;
    text-align: start;
    box-shadow: 0 0.35rem 0.9rem rgba(13, 110, 253, 0.15);
}

html[data-device="mobile"] .create-app-m-describe .create-app-m-describe-back,
html[data-device="mobile"] .create-app-m-describe.is-active .create-app-m-describe-idle {
    display: none;
}

html[data-device="mobile"] .create-app-m-describe-back-arrow {
    display: none;
}

html[data-device="mobile"] .create-app-m-describe.is-active .create-app-m-describe-back-arrow {
    display: inline-block;
}

html[data-device="mobile"] .create-app-m-describe.is-active .create-app-m-describe-chevron {
    display: none;
}

html[dir="rtl"][data-device="mobile"] .create-app-m-describe-back-arrow {
    transform: scaleX(-1);
}

html[data-device="mobile"] .create-app-m-describe.is-active span.create-app-m-describe-back {
    display: flex;
}

html[data-device="mobile"] .create-app-m-describe.is-active {
    box-shadow: 0 0 0 0.15rem #fff, 0 0 0 0.3rem var(--primary_color, #0d6efd);
}

html[data-device="mobile"] .create-app-m-picker:has(.create-app-m-describe.is-active) .m-chips.is-solid,
html[data-device="mobile"] .create-app-m-picker:has(.create-app-m-describe.is-active) .create-app-m-count {
    display: none;
}

html[data-device="mobile"] .create-app-m-describe-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--m-radius-sm);
    background: rgba(255, 255, 255, 0.22);
    font-size: 1.05rem;
}

html[data-device="mobile"] .create-app-m-describe-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

html[data-device="mobile"] .create-app-m-describe-title {
    font-size: var(--m-font-md);
    font-weight: 600;
    line-height: 1.25;
}

html[data-device="mobile"] .create-app-m-describe-text {
    margin-top: 0.1rem;
    font-size: var(--m-font-sm);
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.85;
}

html[data-device="mobile"] .create-app-m-describe-chevron {
    flex: none;
    font-size: var(--m-font-md);
    opacity: 0.9;
}

html[dir="rtl"][data-device="mobile"] .create-app-m-describe-chevron {
    transform: scaleX(-1);
}

html[data-device="mobile"] .create-app-m-picker .create-app-m-sub-chips {
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.22s ease;
}

html[data-device="mobile"] .create-app-m-picker .create-app-m-sub-chips.is-visible {
    max-height: 3.25rem;
    opacity: 1;
    overflow-x: auto;
    padding-top: var(--m-space-1);
    padding-bottom: var(--m-space-1);
    pointer-events: auto;
}

html[data-device="mobile"] .create-app-m-count.is-hidden {
    display: none;
}

html[data-device="mobile"] .create-app-m-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--m-space-3);
    margin: var(--m-space-2) 0 var(--m-space-3);
}

html[data-device="mobile"] .create-app-m-count span:first-child {
    flex-shrink: 0;
    color: var(--gray-600, #6c757d);
    font-size: var(--m-font-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

html[data-device="mobile"] .create-app-m-count span:last-child {
    min-width: 0;
    overflow: hidden;
    color: var(--primary_color, #0d6efd);
    font-size: var(--m-font-sm);
    font-weight: 600;
    text-align: end;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-device="mobile"] .app-builder-create-template-grid {
    grid-template-columns: 1fr;
    gap: var(--m-space-4);
    padding: 0 0 var(--m-space-4);
}

html[data-device="mobile"] .create-app-template-skeleton {
    overflow: hidden;
    border-radius: var(--m-radius-md);
    background: #fff;
    box-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, 0.08);
}

html[data-device="mobile"] .create-app-template-skeleton-image,
html[data-device="mobile"] .create-app-template-skeleton-lines span,
html[data-device="mobile"] .create-app-template-skeleton-actions span {
    background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%);
    background-size: 200% 100%;
    animation: create-app-skeleton-shine 1.1s ease infinite;
}

html[data-device="mobile"] .create-app-template-skeleton-image {
    aspect-ratio: 16 / 9;
}

html[data-device="mobile"] .create-app-template-skeleton-footer {
    display: flex;
    align-items: center;
    gap: var(--m-space-2);
    padding: var(--m-space-3);
}

html[data-device="mobile"] .create-app-template-skeleton-lines {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--m-space-2);
}

html[data-device="mobile"] .create-app-template-skeleton-lines span {
    display: block;
    height: 0.7rem;
    border-radius: 999px;
}

html[data-device="mobile"] .create-app-template-skeleton-lines span:last-child {
    width: 55%;
}

html[data-device="mobile"] .create-app-template-skeleton-actions {
    display: flex;
    gap: var(--m-space-2);
}

html[data-device="mobile"] .create-app-template-skeleton-actions span {
    display: block;
    width: 4.5rem;
    height: var(--m-touch-min);
    border-radius: var(--m-radius-sm);
}

@keyframes create-app-skeleton-shine {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: -100% 0;
    }
}

html[data-device="mobile"] .create-app-template-card.is-entering {
    animation: create-app-card-in 0.32s ease both;
}

@keyframes create-app-card-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

html[data-device="mobile"] .create-app-template-card {
    overflow: hidden;
    border-radius: var(--m-radius-md);
    background: #fff;
    box-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, 0.08);
}

html[data-device="mobile"] .create-app-template-card:hover {
    transform: none;
}

html[data-device="mobile"] .create-app-template-card-footer {
    display: flex;
    align-items: center;
    gap: var(--m-space-2);
    padding: var(--m-space-3);
}

html[data-device="mobile"] .create-app-template-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

html[data-device="mobile"] .create-app-template-card-name {
    overflow: hidden;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-device="mobile"] .create-app-template-card-sub {
    overflow: hidden;
    color: var(--gray-600, #6c757d);
    font-size: var(--m-font-sm);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-device="mobile"] .create-app-template-card-actions {
    display: flex;
    flex: none;
    gap: var(--m-space-2);
}

html[data-device="mobile"] .create-app-template-card-actions .btn {
    min-height: var(--m-touch-min);
}

html[data-device="mobile"] .create-app-template-card-actions .create-app-template-btn-preview {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary_color, #0d6efd);
}
