/* Alpine.js cloak directive - hide content until Alpine is ready */
[x-cloak] {
    display: none !important;
}

:root {
    /* Theme color variables - dark mode defaults */
    --bg-primary: #222222;
    --bg-secondary: #151515;
    --bg-tertiary: #262626;
    --bg-input: #333333;
    --bg-code: #161616;
    --bg-hover: #444444;
    --bg-active: #2c536c;
    --bg-active-true: #55aa69;

    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #cccccc;
    --text-muted: #aaaaaa;
    --text-placeholder: #888888;

    --border-color: #444444;
    --border-light: #353535;
    --border-dark: #666666;

    --button-primary: #238636;
    --button-primary-hover: #2baa43;
    --button-secondary: #444444;
    --button-secondary-hover: #555555;

    --scrollbar-thumb: #555555;
    --scrollbar-thumb-light: #353535;
    --scrollbar-thumb-input: #666666;

    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-color: rgba(0, 0, 0, 0.5);

    --gradient-top: linear-gradient(180deg, var(--bg-primary) 55%, rgba(34, 34, 34, 0) 100%);
    --gradient-bottom: linear-gradient(0deg, var(--bg-primary) 85%, rgba(34, 34, 34, 0) 100%);
}

/* Light mode colors */
:root.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #e8e8e8;
    --bg-tertiary: #f0f0f0;
    --bg-input: #ffffff;
    --bg-code: #f8f8f8;
    --bg-hover: #e0e0e0;
    --bg-active: #d0e8ff;
    --bg-active-true: #82ce87;

    --text-primary: #333333;
    --text-secondary: #444444;
    --text-tertiary: #555555;
    --text-muted: #666666;
    --text-placeholder: #777777;

    --border-color: #cccccc;
    --border-light: #dddddd;
    --border-dark: #aaaaaa;

    --button-primary: #e9e9e9;
    --button-primary-hover: #ccc;
    --button-secondary: #e0e0e0;
    --button-secondary-hover: #d0d0d0;

    --scrollbar-thumb: #bbbbbb;
    --scrollbar-thumb-light: #cccccc;
    --scrollbar-thumb-input: #aaaaaa;

    --shadow-color: rgba(0, 0, 0, 0.2);
    --overlay-color: rgba(0, 0, 0, 0.3);

    --gradient-top: linear-gradient(180deg, var(--bg-primary) 55%, rgba(245, 245, 245, 0) 100%);
    --gradient-bottom: linear-gradient(0deg, var(--bg-primary) 85%, rgba(245, 245, 245, 0) 100%);
}

body {
    margin: 0;
    background-color: var(--bg-primary);
    display: flex;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar for conversation history */
.sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.sidebar.disabled {
    pointer-events: none;
}

.sidebar-header {
    padding: 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conversations-list-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-muted);
    margin-top: 10px;
    padding: 6px 16px;
}

.new-chat-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 0px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 15px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.new-chat-btn:hover {
    background-color: var(--bg-hover);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.conversation-item {
    font-size: 14px;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-item:hover {
    background-color: var(--bg-hover);
}

.conversation-item.active {
    background-color: var(--bg-tertiary);
}

.delete-conversation-btn {
    visibility: hidden;
    cursor: pointer;
    color: var(--text-placeholder);
    padding: 2px;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    text-align: center;
}

.conversation-item:hover .delete-conversation-btn {
    visibility: visible;
}

.delete-conversation-btn:hover {
    color: #ff3333;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Content wrapper for main container and attestation panel */
.content-wrapper {
    display: flex;
    flex: 1;
    height: 100vh;
    overflow: hidden;
}

/* Main chat area */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden; /* Prevent main container from having its own scrollbar */
}

/* Top bar with model selector */
.top-bar {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gradient-top);
    padding-bottom: 30px;
    margin-bottom: -30px;
    z-index: 1;
}

.model-selector-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.selector-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.model-selector, .provider-selector, .type-selector {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    min-width: 150px;
}

.model-selector:focus, .provider-selector:focus, .type-selector:focus {
    border-color: var(--button-primary);
}

/* Chat container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 3px;
}

.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-light);
    border-radius: 3px;
}

#message-input::-webkit-scrollbar {
    width: 6px;
}

#message-input::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-input);
    border-radius: 3px;
}

/* Welcome message */
.welcome-container {
    display: none;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

.welcome-title {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-tertiary);
}

.welcome-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
}

@media (max-height: 830px) {
    .welcome-examples {
        display: none;
    }
}

@media (max-width: 799px) {
    .welcome-examples {
        display: none;
    }
}

.example-item {
    background-color: var(--bg-input);
    padding: 15px;
    border-radius: 8px;
    max-width: 300px;
    cursor: pointer;
}

.example-item:hover {
    background-color: var(--bg-hover);
}

.example-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.example-text {
    font-size: 13px;
    color: var(--text-tertiary);
}

.chat {
    max-width: 80%;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
}

.chat.user {
    align-items: flex-end;
}

.chat.assistant {
    align-items: flex-start;
    animation: slideInFromLeft 0.3s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat .role {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.assistant-role {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-icon {
    display: inline-flex;
    align-items: center;
}

.verification-warning-container {
    margin-top: 12px;
}

/* Verification warning styles */
.verification-warning {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    max-width: 400px;
}

.verification-warning.warning-unavailable {
    background-color: #e2e3e5;
    border-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.verification-warning.warning-no-signature {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(173, 181, 189, 0.2);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
    font-size: 14px;
}

.warning-unavailable .warning-header {
    color: #495057;
}

.warning-no-signature .warning-header {
    color: #6c757d;
}

.warning-message {
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.warning-unavailable .warning-message {
    color: #495057;
}

.warning-no-signature .warning-message {
    color: #6c757d;
}

@keyframes warningPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }
}

/* Dark mode adjustments for verification warnings */
:root:not(.light-mode) .verification-warning {
    background-color: #332701;
    border-color: #ffc107;
    color: #ffc107;
}

:root:not(.light-mode) .verification-warning.warning-unavailable {
    background-color: #2d3748;
    border-color: #718096;
    color: #a0aec0;
}

:root:not(.light-mode) .verification-warning.warning-no-signature {
    background-color: #1a202c;
    border-color: #4a5568;
    color: #718096;
}

:root:not(.light-mode) .warning-header {
    color: #ffc107;
}

:root:not(.light-mode) .warning-unavailable .warning-header {
    color: #a0aec0;
}

:root:not(.light-mode) .warning-no-signature .warning-header {
    color: #718096;
}

:root:not(.light-mode) .warning-message {
    color: #ffc107;
}

:root:not(.light-mode) .warning-unavailable .warning-message {
    color: #a0aec0;
}

:root:not(.light-mode) .warning-no-signature .warning-message {
    color: #718096;
}

.chat .message {
    padding: 12px 16px;
    border-radius: 25px;
    box-sizing: border-box;
    line-height: 1.5;
}

.chat.user .message {
    background: var(--bg-input);
    color: var(--text-primary);
}

.chat.assistant .message {
    color: var(--text-primary);
}

p {
    margin: 8px 0px;
}

pre {
    background: var(--bg-code);
    border-radius: 5px;
    padding: 10px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-x: auto;
}

code {
    background: var(--bg-code);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Input area */
.input-container {
    padding: 15px 20px;
    background: var(--gradient-bottom);
    padding-top: 30px;
    margin-top: -30px;
    z-index: 1;
}

.message-form {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 5px;
    background-color: var(--bg-input);
}

.input-wrapper {
    position: relative;
    min-height: 64px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: var(--bg-input);
    max-height: 30vh;
    overflow-y: auto;
    padding: 0px;
    margin: 0px;
}

.input-wrapper::-webkit-scrollbar {
    width: 6px;
}

.input-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-input);
    border-radius: 3px;
}

textarea[x-model="messageInput"] {
    width: 100%;
    min-height: 60px;
    padding: 15px 15px 0px 15px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    resize: none;
    border-radius: 10px;
    font-family: inherit;
}

.input-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.pill-button {
    border-radius: 20px;
    padding: 6px 10px;
    background-color: var(--button-secondary);
    color: var(--text-primary);
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pill-button:hover {
    background-color: var(--button-secondary-hover);
}

.pill-button.active {
    background-color: var(--bg-active);
}

/* Attestation button styles */
.attestation-button.attestation-verified {
    background-color: #4CAF50 !important;
    color: white !important;
    border: 1px solid #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.attestation-button.attestation-verified:hover {
    background-color: #45a049 !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.attestation-button.attestation-processing {
    background-color: #FF9800 !important;
    color: white !important;
    border: 1px solid #f57c00;
    animation: attestationPulse 1.5s ease-in-out infinite;
}

.attestation-button.attestation-error {
    background-color: #f44336 !important;
    color: white !important;
    border: 1px solid #d32f2f;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.attestation-button.attestation-error:hover {
    background-color: #d32f2f !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

@keyframes attestationPulse {
    0% {
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 152, 0, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
        transform: scale(1);
    }
}

/* Spinner animation for processing state */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--button-primary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.send-button:hover {
    background-color: var(--button-primary-hover);
}

.send-button:disabled {
    background-color: var(--button-secondary);
    cursor: not-allowed;
}

/* Parameter panel */
.param-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 100;
}

.param-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
    z-index: 99;
}

.param-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-weight: bold;
}

.param-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
}

.param-content {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.param-group {
    margin-bottom: 16px;
}

.param-group-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: bold;
}

.param-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.param-item label {
    color: var(--text-secondary);
    font-size: 0.85em;
    flex-shrink: 0;
}

.param-item input,
.param-item textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 6px 8px;
}

.param-item input {
    width: 100px;
}

textarea[x-model="settings.systemPrompt"] {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 100%;
    min-height: 80px;
    resize: vertical;
    margin-top: 6px;
    font-size: 14px;
    border-radius: 5px;
    padding: 8px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

textarea[x-model="settings.systemPrompt"]:focus {
    border-color: var(--button-primary);
}

#api-key-input {
    width: calc(100% - 16px);
}

.param-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.param-button {
    flex: 1;
    padding: 8px;
    background: var(--button-secondary);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

.param-button:hover {
    background: var(--button-secondary-hover);
}

.utility-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.utility-button {
    flex: 1;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
}

.utility-button:hover {
    background: var(--bg-tertiary);
}

/* Message actions */
.message-actions {
    opacity: 0;
    margin-top: -10px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    transition: opacity 0.3s ease;
    margin-top: -16px;
    margin-bottom: -10px;
}

.chat.assistant:hover .message-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-placeholder);
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    transform: translateY(5px);
    opacity: 0;
}

.chat.assistant:hover .action-btn {
    transform: translateY(0);
    opacity: 1;
}

.chat.assistant:hover .action-btn:nth-child(1) {
    transition-delay: 0.05s;
}

.chat.assistant:hover .action-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-placeholder);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    transition: right 0.3s ease;
}

/* Adjust toast position when attestation panel is open */
body:has(.attestation-panel.open) .toast-container {
    right: 420px;
}

.toast {
    background-color: var(--bg-input);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* Attestation Panel */
.attestation-panel {
    width: 0;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.attestation-panel.open {
    width: 400px;
}

.attestation-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-tertiary);
}

.attestation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 16px;
}

.attestation-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.attestation-close:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.attestation-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.attestation-content::-webkit-scrollbar {
    width: 6px;
}

.attestation-content::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 3px;
}

.attestation-status {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.status-description {
    font-size: 14px;
    line-height: 1.4;
}

.attestation-data {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attestation-section {
    background-color: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.section-header {
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.section-header:hover {
    background-color: var(--bg-hover);
}

.section-toggle {
    margin-left: auto;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.section-toggle.rotated {
    transform: rotate(180deg);
}

.section-content {
    padding: 0;
}

.claim-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
}

.claim-item:last-child {
    border-bottom: none;
}

.claim-item.key-highlight {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
}

.claim-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 100px;
    flex-shrink: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.key-icon {
    color: #4CAF50;
    font-size: 14px;
}

.claim-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 13px;
    word-break: break-all;
    line-height: 1.4;
}

.claim-value.technical {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
    background-color: var(--bg-code);
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0;
}

.claim-item:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.top-bar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: -260px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .sidebar.open {
        left: 0;
    }

    .main-container {
        width: 100%;
    }

    .top-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .model-selector-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
    }

    .model-selector, .provider-selector {
        width: 100%;
    }

    .attestation-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 0;
        z-index: 60;
        transition: width 0.3s ease;
    }

    .attestation-panel.open {
        width: 100%;
    }

    .top-bar-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .attestation-panel.open {
        width: 350px;
    }
}
