* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    flex: 1;
    font-size: 1.25rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a6fd6;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
}

td {
    font-size: 0.875rem;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.async-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.async-badge.async-true {
    background-color: #c6f6d5;
    color: #22543d;
}

.async-badge.async-false {
    background-color: #e2e8f0;
    color: #4a5568;
}

/* Expandable Function Cards */
.function-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: white;
}

.function-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.function-header:hover {
    background: #edf2f7;
}

.function-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.function-id {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
}

.function-signature-preview {
    color: #718096;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.function-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.function-details {
    display: none;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.function-details.show {
    display: block;
}

.function-section {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.function-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.function-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    margin-bottom: 0.5rem;
}

.function-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.function-field {
    min-width: 140px;
}

.function-field-full {
    width: 100%;
    flex-basis: 100%;
}

.function-field-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #a0aec0;
    margin-bottom: 0.15rem;
}

.function-field-value {
    font-size: 0.875rem;
    color: #2d3748;
    word-break: break-all;
}

.function-field-value code {
    background: #edf2f7;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.8125rem;
}

.function-params-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.function-param-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.function-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.text-muted {
    color: #a0aec0;
    font-style: italic;
}

/* Inline editing state */
.function-card.editing {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.function-card.editing .function-header {
    cursor: default;
}

.function-card.editing .function-header:hover {
    background: #f7fafc;
}

.function-field-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: white;
}

.function-field-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Toast notifications */
#notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: notificationSlideIn 0.3s ease-out;
    max-width: 400px;
    word-break: break-word;
}

.notification.notification-success {
    background-color: #38a169;
}

.notification.notification-error {
    background-color: #e53e3e;
}

.notification.notification-info {
    background-color: #667eea;
}

.notification.notification-fade-out {
    animation: notificationFadeOut 0.3s ease-in forwards;
}

@keyframes notificationSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.125rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.warning {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#details-content {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: 600;
    width: 120px;
    color: #666;
    font-size: 0.875rem;
}

.detail-value {
    flex: 1;
    font-size: 0.875rem;
    word-break: break-all;
}

/* Invocations list */
#invocations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invocation-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1rem;
}

.invocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.invocation-id {
    font-family: monospace;
    font-size: 0.875rem;
    color: #666;
}

.invocation-status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-running {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-failed {
    background-color: #fed7d7;
    color: #c53030;
}

.invocation-function {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.invocation-result {
    background-color: #f9f9f9;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.invocation-error {
    background-color: #fed7d7;
    color: #c53030;
}

/* Parameter input styling */
.param-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.param-input-group label {
    min-width: 60px;
    font-size: 0.75rem;
    color: #666;
}

.param-input-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.param-type {
    font-size: 0.625rem;
    color: #999;
    font-family: monospace;
}

/* WebSocket Console styles */
.btn-ws {
    background-color: #38b2ac;
    color: white;
}

.btn-ws:hover {
    background-color: #319795;
}

.modal-large {
    max-width: 800px;
}

.ws-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
    margin-right: 1rem;
}

.ws-connecting {
    background-color: #fef3c7;
    color: #92400e;
}

.ws-connected {
    background-color: #c6f6d5;
    color: #22543d;
}

.ws-disconnected {
    background-color: #e2e8f0;
    color: #4a5568;
}

.ws-error {
    background-color: #fed7d7;
    color: #c53030;
}

.ws-console-body {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    min-height: 400px;
}

.ws-params-section {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
}

.ws-params-section h4 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.ws-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ws-log-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ws-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ws-log-header h4 {
    font-size: 0.875rem;
    color: #666;
}

.ws-log {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.75rem;
    overflow-y: auto;
    max-height: 350px;
    min-height: 200px;
}

.ws-log-entry {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.ws-log-time {
    color: #666;
    margin-right: 0.5rem;
}

.ws-log-message {
    white-space: pre-wrap;
    word-break: break-all;
}

.ws-log-system .ws-log-message {
    color: #888;
}

.ws-log-sent .ws-log-message {
    color: #61afef;
}

.ws-log-received .ws-log-message {
    color: #98c379;
}

.ws-log-result .ws-log-message {
    color: #e5c07b;
}

.ws-log-error .ws-log-message {
    color: #e06c75;
}

/* Header link style */
.header-link {
    color: white;
    text-decoration: none;
}

.header-link:hover {
    opacity: 0.9;
}

/* Page routing */
.page {
    display: block;
}

/* Wizard styles */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #999;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    width: 1rem;
    height: 2px;
    background-color: #ddd;
}

.wizard-step.active {
    color: #667eea;
}

.wizard-step.completed {
    color: #38a169;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
}

.wizard-step.active .step-number {
    background-color: #667eea;
    color: white;
}

.wizard-step.completed .step-number {
    background-color: #38a169;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.wizard-content {
    padding: 1.5rem;
}

.wizard-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #333;
}

/* Source options */
.source-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.source-option {
    flex: 1;
    max-width: 300px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.source-option:hover {
    border-color: #667eea;
    background-color: #f8fafc;
}

.source-option.selected {
    border-color: #667eea;
    background-color: #eef2ff;
}

.source-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.source-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.source-desc {
    font-size: 0.875rem;
    color: #666;
}

/* Maven repos list */
.repos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.repo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #f8fafc;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
}

.repo-badge {
    font-size: 0.625rem;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #4a5568;
}

.repo-item.custom-repo .repo-badge {
    background-color: #c6f6d5;
    color: #22543d;
}

.repo-item .remove-repo {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
}

.add-repo-form {
    display: flex;
    gap: 0.5rem;
}

.add-repo-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* File drop zone */
.file-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: #667eea;
    background-color: #f8fafc;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.drop-icon {
    font-size: 3rem;
}

.selected-file {
    font-weight: 600;
    color: #667eea;
}

/* Form hints */
.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #888;
}

.checkbox-hint {
    display: inline;
    margin-left: 0.5rem;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error/Warning messages */
.error-message {
    padding: 1rem;
    background-color: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 4px;
    color: #c53030;
    margin-bottom: 1rem;
}

.warning-message {
    padding: 1rem;
    background-color: #fef3c7;
    border: 1px solid #f6ad55;
    border-radius: 4px;
    color: #92400e;
    margin-bottom: 1rem;
}

/* Method signature display */
.method-signature {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 4px;
}

.method-signature label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #555;
}

.method-signature code {
    display: block;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #333;
}

/* Summary box */
.summary-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.summary-box h4 {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.summary-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.summary-label {
    width: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
}

.summary-value {
    flex: 1;
    font-size: 0.875rem;
    font-family: monospace;
}

/* Git build form */
.git-auth-section {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.git-auth-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    user-select: none;
    transition: background-color 0.15s;
}

.git-auth-toggle:hover {
    background-color: #f8fafc;
}

.auth-arrow {
    font-size: 0.625rem;
    transition: transform 0.2s;
    display: inline-block;
}

.auth-arrow.expanded {
    transform: rotate(90deg);
}

.git-auth-fields {
    padding: 0 0.75rem 0.75rem;
}

.git-auth-fields textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    resize: vertical;
    line-height: 1.4;
}

.git-auth-fields textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.git-build-progress {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    font-size: 0.875rem;
    color: #555;
}

.spinner-dark {
    border-color: #667eea;
    border-top-color: transparent;
}

.build-log {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.75rem;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Select styling */
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: white;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

select:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Instance method option styling */
select option.instance-method {
    color: #999;
}

/* Create function section */
.create-function-section {
    max-width: 700px;
    margin: 0 auto;
}

.create-function-section .section-header {
    justify-content: flex-start;
}

.create-function-section .section-header h2 {
    flex: none;
    margin-left: 1rem;
}

/* Parameter Configuration (Wizard Step 4) */
.param-config-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.param-config-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.param-config-row {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: white;
}

.param-config-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.param-config-index {
    font-weight: 600;
    font-size: 0.875rem;
    color: #2d3748;
}

.param-config-type {
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', monospace;
    color: #718096;
    background: #edf2f7;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

.param-config-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.param-behavior-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: white;
}

.param-value-input {
    margin-top: 0.25rem;
}

.param-value-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Parameter behavior badges in invoke modal */
.param-behavior-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-override {
    background-color: #fed7d7;
    color: #c53030;
}

.badge-default {
    background-color: #fef3c7;
    color: #92400e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-header h2 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .ws-console-body {
        flex-direction: column;
    }

    .ws-params-section {
        flex: 0 0 auto;
    }

    .source-options {
        flex-direction: column;
    }

    .source-option {
        max-width: none;
    }

    .wizard-steps {
        flex-wrap: wrap;
    }

    .wizard-step:not(:last-child)::after {
        display: none;
    }
}
