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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    height: 100vh;
    overflow: hidden;
}

/* Auth screen */
.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f5f5f5;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 28px;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.auth-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: #007aff;
}

.auth-error {
    color: #c00;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.auth-submit:hover {
    background: #0062cc;
}

.auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 16px;
}

.auth-switch a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}


.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* Header */
.header {
    padding: 12px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Navigation tabs */
.header-nav {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
}

.nav-tab {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.nav-tab:hover {
    color: #333;
}

.nav-tab.active {
    background: #fff;
    color: #007aff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.new-chat-button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    margin-left: 8px;
    transition: background 0.2s, color 0.2s;
}

.new-chat-button:hover {
    background: #f0f0f0;
    color: #007aff;
}

/* Views */
.view {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.view.active {
    display: flex;
}

/* Chat container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-message {
    text-align: center;
    color: #888;
    margin: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Message bubbles */
.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeIn 0.2s ease;
}

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

.message.user {
    align-self: flex-end;
}

.message.agent {
    align-self: flex-start;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message.user .message-bubble {
    white-space: pre-wrap;
}

.message.user .message-bubble {
    background: #007aff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message.agent .message-bubble {
    background: #f0f0f0;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

/* Thinking section */
.thinking-section {
    margin-bottom: 4px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.thinking-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fafafa;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 12px;
    color: #666;
    font-family: inherit;
}

.thinking-toggle:hover {
    background: #f0f0f0;
}

.thinking-toggle .arrow {
    transition: transform 0.2s;
    font-size: 10px;
}

.thinking-toggle.open .arrow {
    transform: rotate(90deg);
}

.thinking-content {
    display: none;
    padding: 8px 12px;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
    max-height: 300px;
    overflow-y: auto;
}

.thinking-content.open {
    display: block;
}

.thinking-entry {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
}

.thinking-entry.tool-call {
    background: #e8f4fd;
    border-left: 3px solid #007aff;
}

.thinking-entry.tool-result {
    background: #e8f8e8;
    border-left: 3px solid #34c759;
}

.thinking-entry.tool-error {
    background: #ffeaea;
    border-left: 3px solid #c00;
}

.thinking-entry.tool-error .label {
    color: #c00;
}

.thinking-entry .label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.thinking-entry.tool-call .label {
    color: #007aff;
}

.thinking-entry.tool-result .label {
    color: #28a745;
}

.thinking-entry .detail {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 12px;
    color: #444;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
}

/* Loading indicator */
.loading-dots {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Error message */
.message.error .message-bubble {
    background: #ffeaea;
    color: #c00;
    border-left: 3px solid #c00;
}

/* Upload preview */
.upload-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 8px;
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 6px;
    font-size: 13px;
    color: #1a6fa8;
}

.upload-preview span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-remove {
    background: none;
    border: none;
    color: #1a6fa8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.upload-remove:hover {
    color: #c00;
}

/* Input area */
.input-area {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.input-form {
    display: flex;
    gap: 8px;
}

.attach-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.attach-button:hover {
    background: #e0e0e0;
    color: #007aff;
}

.attach-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.input-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.input-form input:focus {
    border-color: #007aff;
}

.input-form input:disabled {
    background: #f5f5f5;
    color: #999;
}

.input-form button {
    padding: 10px 20px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.input-form button:hover {
    background: #0062cc;
}

.input-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Markdown content in agent messages */
.message.agent .message-bubble code {
    background: #e0e0e0;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
}

.message.agent .message-bubble pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 12px;
}

.message.agent .message-bubble pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.message.agent .message-bubble h3,
.message.agent .message-bubble h4 {
    margin: 12px 0 6px 0;
    font-weight: 600;
}

.message.agent .message-bubble h3 {
    font-size: 15px;
}

.message.agent .message-bubble h4 {
    font-size: 14px;
}

.message.agent .message-bubble ul {
    margin: 4px 0;
    padding-left: 20px;
}

.message.agent .message-bubble li {
    margin-bottom: 2px;
}

.message.agent .message-bubble table {
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13px;
    width: 100%;
}

.message.agent .message-bubble th,
.message.agent .message-bubble td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}

.message.agent .message-bubble th {
    background: #f0f0f0;
    font-weight: 600;
}

.message.agent .message-bubble a {
    color: #007aff;
    text-decoration: none;
}

.message.agent .message-bubble a:hover {
    text-decoration: underline;
}

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

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Documents page */
.documents-page {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.documents-search {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.documents-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.documents-search input:focus {
    border-color: #007aff;
}

.documents-search button {
    padding: 10px 20px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.documents-search button:hover {
    background: #0062cc;
}

/* Documents grid */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.documents-loading,
.documents-empty {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 14px;
}

/* Document card */
.document-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    border-color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.document-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.document-card-icon.health_insurance { background: #e8f5e9; }
.document-card-icon.bill { background: #fff3e0; }
.document-card-icon.prescription { background: #e3f2fd; }
.document-card-icon.discharge_summary { background: #fce4ec; }
.document-card-icon.lab_report { background: #f3e5f5; }
.document-card-icon.id_proof { background: #e8eaf6; }
.document-card-icon.health_card { background: #e0f2f1; }
.document-card-icon.other { background: #f5f5f5; }

.document-card-body {
    flex: 1;
    min-width: 0;
}

.document-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.document-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-card-type {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
    white-space: nowrap;
    text-transform: capitalize;
}

.document-card-summary {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.document-card-user {
    font-weight: 500;
    color: #007aff;
}

.document-card-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.document-card-actions a {
    font-size: 12px;
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

.document-card-actions a:hover {
    text-decoration: underline;
}

/* Document cards in chat */
.chat-document-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d0e8ff;
    border-radius: 8px;
    margin-top: 8px;
}

.chat-document-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #e8f4fd;
    flex-shrink: 0;
}

.chat-document-card-body {
    flex: 1;
    min-width: 0;
}

.chat-document-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.chat-document-card-summary {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-document-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: #888;
}

.chat-document-card-link {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

.chat-document-card-link:hover {
    text-decoration: underline;
}

/* Tab badge */
.tab-badge {
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
    min-width: 14px;
    text-align: center;
    vertical-align: top;
}

/* Updates page */
.updates-page {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.updates-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.updates-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.updates-count {
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.updates-loading,
.updates-empty {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 14px;
}

/* Update card */
.update-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: opacity 0.3s ease, border-color 0.2s ease;
    align-items: flex-start;
}

.update-card:hover {
    border-color: #007aff;
}

.update-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.update-card-icon.delivery { background: #ff9500; }
.update-card-icon.appointment { background: #007aff; }
.update-card-icon.payment { background: #ff2d55; }
.update-card-icon.expiry { background: #ff9500; }
.update-card-icon.renewal { background: #34c759; }
.update-card-icon.reminder { background: #5856d6; }
.update-card-icon.other { background: #8e8e93; }

.update-card-body {
    flex: 1;
    min-width: 0;
}

.update-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.update-card-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.update-card-date {
    color: #007aff;
    font-weight: 500;
}

.update-card-date.date-today {
    color: #ff9500;
    font-weight: 600;
}

.update-card-date.date-overdue {
    color: #ff3b30;
    font-weight: 600;
}

.update-card-source {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

.update-card-category {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.update-card-category.delivery { background: #ff9500; }
.update-card-category.appointment { background: #007aff; }
.update-card-category.payment { background: #ff2d55; }
.update-card-category.expiry { background: #ff9500; }
.update-card-category.renewal { background: #34c759; }
.update-card-category.reminder { background: #5856d6; }
.update-card-category.other { background: #8e8e93; }

.update-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.update-card-help {
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.update-card-help:hover {
    background: #0062cc;
}

.update-card-dismiss {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.update-card-dismiss:hover {
    color: #ff3b30;
}

/* Update context banner (pinned above chat input) */
.update-context-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 8px 0;
    background: #f0f6ff;
    border: 1px solid #c4dcf5;
    border-radius: 10px;
    animation: bannerSlideIn 0.2s ease;
}

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

.update-context-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.update-context-icon.delivery { background: #ff9500; }
.update-context-icon.appointment { background: #007aff; }
.update-context-icon.payment { background: #ff2d55; }
.update-context-icon.expiry { background: #ff9500; }
.update-context-icon.renewal { background: #34c759; }
.update-context-icon.reminder { background: #5856d6; }
.update-context-icon.other { background: #8e8e93; }

.update-context-body {
    flex: 1;
    min-width: 0;
}

.update-context-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.update-context-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-context-meta {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.update-context-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.update-context-close:hover {
    color: #ff3b30;
}

/* Me page */
.me-page {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.me-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.me-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.me-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.me-card-icon {
    font-size: 22px;
}

.me-card-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* WhatsApp status indicator */
.whatsapp-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.connected {
    background: #34c759;
    box-shadow: 0 0 4px rgba(52, 199, 89, 0.4);
}

.status-dot.disconnected {
    background: #cc0000;
    box-shadow: 0 0 4px rgba(204, 0, 0, 0.3);
}

/* Me form */
.me-form-group {
    margin-bottom: 14px;
}

.me-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.me-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.me-form-group input:focus {
    border-color: #007aff;
}

.me-button {
    padding: 10px 24px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.me-button:hover {
    background: #0062cc;
}

.me-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Pairing result */
.pairing-result {
    margin-top: 16px;
    text-align: center;
}

.pairing-code {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #007aff;
    padding: 16px;
    background: #e8f4fd;
    border-radius: 10px;
    margin-bottom: 12px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}

.pairing-code.connected {
    color: #34c759;
    background: #e8f8e8;
    letter-spacing: 0;
    font-size: 18px;
}

.pairing-instructions {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.me-error {
    color: #c00;
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
}

/* Sign out card */
.me-card-signout {
    text-align: center;
    padding: 16px 24px;
}

.me-signout-button {
    padding: 10px 32px;
    border: 1px solid #cc0000;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #cc0000;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.me-signout-button:hover {
    background: #ffeaea;
}
