.feature-html-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feature-html-wrapper * {
    box-sizing: border-box;
}

.feature-html-wrapper .container {
    max-width: 100% !important;
    width: 100% !important;
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Force full width - override any theme constraints */
.feature-html-wrapper,
.feature-html-wrapper * {
    max-width: 100% !important;
}

.feature-html-wrapper .demo-layout,
.feature-html-wrapper .content,
.feature-html-wrapper .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.feature-html-wrapper .header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    text-align: center;
}

.feature-html-wrapper .header h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #1a1a1a;
}

.feature-html-wrapper .header p {
    font-size: 0.95rem;
    color: #646970;
    margin: 0;
}

.feature-html-wrapper .content {
    padding: 24px;
    background: #fafafa;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* Two-column layout on desktop/laptop (facial-recognition: Reference | Results) */
.feature-html-wrapper[data-feature="facial-recognition"] .content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    align-items: start !important;
}

/* Main Layout (when demo-layout is used) */
.feature-html-wrapper .demo-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* Ensure parent containers don't constrain */
.feature-html-wrapper .content .demo-layout,
.feature-html-wrapper .container .content .demo-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Left Panel - Reference */
.feature-html-wrapper .reference-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.feature-html-wrapper .reference-panel h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.feature-html-wrapper .reference-image-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    max-width: 100%;
}

.feature-html-wrapper .reference-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.feature-html-wrapper .reference-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.camera-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.camera-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camera-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.camera-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #646970;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.camera-modal-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.camera-modal-body {
    padding: 24px;
    flex: 1;
    overflow: hidden;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.camera-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.camera-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d0d0d0;
    transition: all 0.2s;
}

.camera-btn.primary {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.camera-btn.primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.camera-btn.secondary {
    background: #fff;
    color: #1a1a1a;
}

.camera-btn.secondary:hover {
    background: #f5f5f5;
}

.feature-html-wrapper #referencePlaceholder {
    color: #646970;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

.feature-html-wrapper .thumbnail-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 16px 0;
    margin-bottom: 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .thumbnail-item {
    min-width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.feature-html-wrapper .thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-html-wrapper .thumbnail-item.active {
    border-color: #2271b1;
}

.feature-html-wrapper .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-html-wrapper .thumbnail-item > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    color: white;
}

.feature-html-wrapper .take-photo-btn {
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .take-photo-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.feature-html-wrapper .upload-area {
    width: 100%;
    padding: 40px 20px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    text-align: center;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .upload-area:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.feature-html-wrapper .upload-area-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* Right Panel - Results */
.feature-html-wrapper .results-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.feature-html-wrapper .results-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .results-panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.feature-html-wrapper .panel-actions {
    display: flex;
    gap: 8px;
}

.feature-html-wrapper .panel-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    color: #646970;
    padding: 0;
}

.feature-html-wrapper .panel-action-btn:hover {
    background: #f5f5f5;
    border-color: #2271b1;
    color: #2271b1;
}

.feature-html-wrapper .results-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.feature-html-wrapper .results-tabs::-webkit-scrollbar {
    display: none;
}

.feature-html-wrapper .results-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #646970;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .results-tab:hover {
    color: #1a1a1a;
    background: #fafafa;
}

.feature-html-wrapper .results-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
    background: #fafafa;
}

.feature-html-wrapper .results-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.feature-html-wrapper .results-tab-content.active {
    display: block;
}

/* Face Result Cards */
.feature-html-wrapper .face-result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.2s;
}

.feature-html-wrapper .face-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-html-wrapper .face-result-item.face-1 {
    border-color: #00a32a;
}

.feature-html-wrapper .face-result-item.face-2 {
    border-color: #d63638;
}

.feature-html-wrapper .face-result-item.face-3 {
    border-color: #8b5cf6;
}

.feature-html-wrapper .face-cropped-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 3px solid;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    overflow: hidden;
}

.feature-html-wrapper .face-cropped-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.feature-html-wrapper .face-1 .face-cropped-image {
    border-color: #00a32a;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.feature-html-wrapper .face-2 .face-cropped-image {
    border-color: #d63638;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.feature-html-wrapper .face-3 .face-cropped-image {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
}

.feature-html-wrapper .face-attributes {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .face-attribute {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.feature-html-wrapper .face-attribute-label {
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 8px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.feature-html-wrapper .face-attribute-value {
    color: #646970;
    font-weight: 500;
}

.feature-html-wrapper .show-all-attributes {
    margin-top: 8px;
    color: #2271b1;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.feature-html-wrapper .show-all-attributes:hover {
    text-decoration: underline;
}

.feature-html-wrapper .all-attributes {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    display: none;
    border: 1px solid #e8e8e8;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    word-break: break-word;
}

.feature-html-wrapper .all-attributes.show {
    display: block;
}

.feature-html-wrapper .all-attributes-item {
    font-size: 12px;
    margin-bottom: 6px;
    color: #646970;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
    word-break: break-word;
    overflow-wrap: break-word;
}

.feature-html-wrapper .all-attributes-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-html-wrapper .all-attributes-item strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 8px;
}

/* Request Tab */
.feature-html-wrapper .request-section {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .request-method-url {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .method-select {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    min-width: 90px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .method-select.POST {
    background: #49cc90;
    color: white;
    border-color: #49cc90;
}

.feature-html-wrapper .url-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-all;
}

.feature-html-wrapper .url-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.feature-html-wrapper .send-btn {
    padding: 10px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .send-btn:hover {
    background: #135e96;
}

.feature-html-wrapper .send-btn:disabled {
    background: #c3c4c7;
    cursor: not-allowed;
}

.feature-html-wrapper .request-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.feature-html-wrapper .request-tabs::-webkit-scrollbar {
    display: none;
}

.feature-html-wrapper .request-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #646970;
    transition: all 0.2s;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .request-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

.feature-html-wrapper .request-tab-content {
    display: none;
}

.feature-html-wrapper .request-tab-content.active {
    display: block;
}

.feature-html-wrapper .headers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .header-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .header-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 0;
    box-sizing: border-box;
}

.feature-html-wrapper .header-row input:focus {
    outline: none;
    border-color: #2271b1;
}

.feature-html-wrapper .add-header-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .add-header-btn:hover {
    background: #e8e8e8;
}

.feature-html-wrapper .request-body {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    resize: vertical;
    background: #fafafa;
    line-height: 1.6;
}

.feature-html-wrapper .request-body:focus {
    outline: none;
    border-color: #2271b1;
    background: #fff;
}

/* Response Tab */
.feature-html-wrapper .response-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.feature-html-wrapper .status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.feature-html-wrapper .status-badge.success {
    background: #d4edda;
    color: #155724;
}

.feature-html-wrapper .response-time {
    color: #646970;
    font-size: 13px;
}

.feature-html-wrapper .response-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.feature-html-wrapper .response-tabs::-webkit-scrollbar {
    display: none;
}

.feature-html-wrapper .response-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #646970;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.feature-html-wrapper .response-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

.feature-html-wrapper .response-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.feature-html-wrapper .response-content::-webkit-scrollbar {
    width: 8px;
}

.feature-html-wrapper .response-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.feature-html-wrapper .response-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.feature-html-wrapper .response-headers-content {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.feature-html-wrapper .response-headers-content.hidden {
    display: none;
}

/* Tablet and below: single column */
@media (max-width: 1024px) {
    .feature-html-wrapper[data-feature="facial-recognition"] .content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .feature-html-wrapper .demo-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .reference-panel,
    .feature-html-wrapper .results-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .feature-html-wrapper .header {
        padding: 15px 20px !important;
    }
    
    .feature-html-wrapper .header h1 {
        font-size: 1.5rem !important;
    }
    
    .feature-html-wrapper .header p {
        font-size: 0.9rem !important;
    }
    
    .feature-html-wrapper .content {
        padding: 15px !important;
    }
    
    .feature-html-wrapper .demo-layout {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0;
    }
    
    .feature-html-wrapper .reference-panel,
    .feature-html-wrapper .results-panel {
        padding: 15px !important;
    }
    
    .feature-html-wrapper .reference-image-container {
        min-height: 250px !important;
        max-height: 400px !important;
    }
    
    .feature-html-wrapper .thumbnail-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 8px 0 12px 0;
        gap: 8px;
    }
    
    .feature-html-wrapper .thumbnail-carousel::-webkit-scrollbar {
        height: 4px;
    }
    
    .feature-html-wrapper .thumbnail-item {
        min-width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .feature-html-wrapper .take-photo-btn {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .upload-area {
        padding: 30px 15px;
        font-size: 13px;
    }
    
    .feature-html-wrapper .upload-area-icon {
        font-size: 28px;
    }
    
    .feature-html-wrapper .camera-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px;
    }
    
    .feature-html-wrapper .camera-modal-header {
        padding: 15px 20px !important;
    }
    
    .feature-html-wrapper .camera-modal-body {
        padding: 15px !important;
    }
    
    .feature-html-wrapper .camera-modal-footer {
        padding: 15px !important;
        flex-direction: column;
    }
    
    .feature-html-wrapper .camera-btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .request-method-url {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .feature-html-wrapper .method-select {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .url-input {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box;
        word-break: break-all;
    }
    
    .feature-html-wrapper .send-btn {
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px 20px;
    }
    
    .feature-html-wrapper .header-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .feature-html-wrapper .header-row input {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
        word-break: break-all;
        padding: 10px 12px;
    }
    
    .feature-html-wrapper .request-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .feature-html-wrapper .request-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        white-space: normal;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .request-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .request-body {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 12px;
    }
    
    .feature-html-wrapper .add-header-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 16px;
    }
    
    .feature-html-wrapper .results-panel-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .feature-html-wrapper .panel-actions {
        flex-wrap: wrap;
    }
    
    .feature-html-wrapper .panel-action-btn {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .feature-html-wrapper .face-result-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px !important;
        gap: 12px;
    }
    
    .feature-html-wrapper .face-attributes {
        width: 100%;
        text-align: left;
    }
    
    .feature-html-wrapper .face-attribute {
        margin-bottom: 8px;
        font-size: 13px;
        word-break: break-word;
    }
    
    .feature-html-wrapper .all-attributes {
        font-size: 12px;
        padding: 10px;
        overflow-x: auto;
    }
    
    .feature-html-wrapper .all-attributes-item {
        font-size: 11px;
        word-break: break-word;
    }
    
    .feature-html-wrapper .response-header {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    .feature-html-wrapper .status-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .feature-html-wrapper .response-time {
        font-size: 12px;
    }
    
    .feature-html-wrapper .face-cropped-image {
        width: 100px;
        height: 100px;
    }
    
    .feature-html-wrapper .results-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .feature-html-wrapper .results-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        white-space: normal;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .results-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .header-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .feature-html-wrapper .header-row input {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
        word-break: break-all;
    }
    
    .feature-html-wrapper .request-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .feature-html-wrapper .request-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        white-space: normal;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .request-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .response-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .feature-html-wrapper .response-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        white-space: normal;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .response-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .results-panel-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .feature-html-wrapper .results-panel-header h3 {
        flex: 1;
        min-width: 0;
    }
    
    .feature-html-wrapper .panel-actions {
        flex-shrink: 0;
    }
    
    .feature-html-wrapper .add-header-btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .request-section {
        padding: 0;
    }
    
    .feature-html-wrapper .results-panel {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .feature-html-wrapper .header {
        padding: 12px 15px !important;
    }
    
    .feature-html-wrapper .header h1 {
        font-size: 1.3rem !important;
    }
    
    .feature-html-wrapper .header p {
        font-size: 0.85rem !important;
    }
    
    .feature-html-wrapper .content {
        padding: 10px !important;
    }
    
    .feature-html-wrapper .demo-layout {
        gap: 12px;
    }
    
    .feature-html-wrapper .reference-panel,
    .feature-html-wrapper .results-panel {
        padding: 12px !important;
    }
    
    .feature-html-wrapper .reference-panel h3,
    .feature-html-wrapper .results-panel-header h3 {
        font-size: 14px !important;
    }
    
    .feature-html-wrapper .reference-image-container {
        min-height: 200px !important;
        max-height: 300px !important;
    }
    
    .feature-html-wrapper .thumbnail-carousel {
        gap: 6px;
        padding: 6px 0 10px 0;
    }
    
    .feature-html-wrapper .thumbnail-item {
        min-width: 55px;
        height: 55px;
    }
    
    .feature-html-wrapper .take-photo-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .feature-html-wrapper .upload-area {
        padding: 25px 12px;
        font-size: 12px;
    }
    
    .feature-html-wrapper .upload-area-icon {
        font-size: 24px;
    }
    
    .feature-html-wrapper .camera-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh !important;
        margin: 0;
        border-radius: 0;
    }
    
    .feature-html-wrapper .camera-preview-container {
        aspect-ratio: 4 / 3;
    }
    
    .feature-html-wrapper .face-result-item {
        padding: 10px !important;
        gap: 10px;
    }
    
    .feature-html-wrapper .face-cropped-image {
        width: 70px;
        height: 70px;
    }
    
    .feature-html-wrapper .face-attribute {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .feature-html-wrapper .face-attribute-label {
        font-size: 12px;
    }
    
    .feature-html-wrapper .face-attribute-value {
        font-size: 12px;
    }
    
    .feature-html-wrapper .all-attributes {
        font-size: 11px;
        padding: 8px;
    }
    
    .feature-html-wrapper .all-attributes-item {
        font-size: 10px;
        padding-bottom: 4px;
        margin-bottom: 4px;
    }
    
    .feature-html-wrapper .show-all-attributes {
        font-size: 12px;
    }
    
    .feature-html-wrapper .panel-action-btn {
        min-width: 36px;
        min-height: 36px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .feature-html-wrapper .request-method-url {
        gap: 8px;
    }
    
    .feature-html-wrapper .method-select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .feature-html-wrapper .url-input {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .feature-html-wrapper .send-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .feature-html-wrapper .header-row {
        gap: 6px;
    }
    
    .feature-html-wrapper .header-row input {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .feature-html-wrapper .request-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .feature-html-wrapper .request-body {
        font-size: 11px;
        padding: 10px;
        min-height: 150px;
    }
    
    .feature-html-wrapper .add-header-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .feature-html-wrapper .response-header {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .feature-html-wrapper .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .feature-html-wrapper .response-time {
        font-size: 11px;
    }
    
    .feature-html-wrapper .results-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .feature-html-wrapper .results-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 10px 12px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .results-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .request-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .feature-html-wrapper .request-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 10px 12px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .request-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .response-tabs {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        overflow-y: visible;
        border-bottom: none;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .feature-html-wrapper .response-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
        white-space: normal;
        padding: 10px 12px;
        font-size: 12px;
        text-align: center;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .feature-html-wrapper .response-tab.active {
        border-bottom-color: transparent;
        background: #fafafa;
    }
    
    .feature-html-wrapper .response-content {
        font-size: 10px;
        padding: 12px;
        max-height: 350px;
        line-height: 1.6;
    }
    
    .feature-html-wrapper .response-headers-content {
        font-size: 10px;
        padding: 10px;
        max-height: 250px;
        line-height: 1.6;
    }
    
    .feature-html-wrapper .results-panel {
        padding: 10px !important;
    }
    
    .feature-html-wrapper .results-panel-header {
        margin-bottom: 12px;
    }
    
    .feature-html-wrapper .results-panel-header h3 {
        font-size: 13px !important;
    }
    
    .feature-html-wrapper .reference-panel h3 {
        font-size: 13px !important;
        margin-bottom: 12px;
    }
    
    .feature-html-wrapper .request-section {
        margin-bottom: 15px;
    }
    
    .feature-html-wrapper .headers-list {
        gap: 8px;
    }
}
