body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background-color: #f5f5f7;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.card {
    border: 1px solid #e1e1e6;
    border-radius: 0.6rem;
}

.card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
}

.display-metric {
    font-size: 2.3rem;
    font-weight: 600;
    color: #111827;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 1px;
    color: #6b7280;
}

.table tbody tr:hover {
    background-color: #f3f4f6;
}

.badge-status {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-status-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-status-paused {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-status-done {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-status-deleted {
    background-color: #fef2f2;
    color: #991b1b;
}

.btn-pill {
    border-radius: 999px;
}

.btn-ghost {
    border-radius: 999px;
    border-color: #d1d5db;
    color: #374151;
}

.btn-ghost:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-header h1 {
    margin-bottom: 0;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.chat-window {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    max-height: 520px;
    overflow-y: auto;
}

.chat-row {
    display: flex;
    margin-bottom: 0.6rem;
}

.chat-row-in {
    justify-content: flex-end;
}

.chat-row-out {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: min(520px, 90%);
    border-radius: 0.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
}

.chat-bubble-in {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.chat-bubble-out {
    background: #f3f4f6;
    color: #111827;
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.72rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.chat-text {
    font-size: 0.95rem;
    line-height: 1.25rem;
    white-space: normal;
    word-break: break-word;
}

