:root {
    color-scheme: light;
    --app-bg: #f4f5f7;
    --app-surface: #ffffff;
    --app-surface-2: #f0f2f5;
    --app-text: #0f172a;
    --app-text-muted: #64748b;
    --app-border: #e2e8f0;
    --app-accent: #2563eb;
    --app-accent-soft: #eff6ff;
    --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --app-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --app-radius: 12px;
    --app-radius-sm: 8px;
    --app-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --app-bg: #0b1120;
        --app-surface: #111827;
        --app-surface-2: #1e293b;
        --app-text: #f1f5f9;
        --app-text-muted: #94a3b8;
        --app-border: #334155;
        --app-accent: #60a5fa;
        --app-accent-soft: #1e3a5f;
        --app-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
        --app-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    }

    .table-light {
        --bs-table-bg: var(--app-surface-2);
        --bs-table-color: var(--app-text);
    }
}

html {
    overflow-x: clip;
}

html, body {
    font-family: var(--app-font);
    background: var(--app-bg);
    color: var(--app-text);
    max-width: 100%;
    overflow-x: clip;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a, .btn-link {
    color: var(--app-accent);
    overflow-wrap: anywhere;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

pre, code {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.login-panel {
    max-width: 520px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

.login-page {
    max-width: 32rem;
}

.btn-primary {
    border-radius: var(--app-radius-sm);
    font-weight: 600;
}

.btn-sync {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    box-shadow: var(--app-shadow-sm);
}

.login-oauth-buttons .btn {
    min-height: 2.75rem;
}

@media (max-width: 640.98px) {
    .login-oauth-buttons .btn {
        width: 100%;
    }
}

h1:focus {
    outline: none;
}

.app-sidebar .side-nav__link,
.app-sidebar .side-nav__link:visited {
    display: block;
    padding: 0.4rem 0.5rem;
    border-radius: var(--app-radius-sm);
    color: var(--app-text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
}

.app-sidebar .side-nav__link:hover {
    background: var(--app-surface-2);
    color: var(--app-accent);
}

.app-sidebar .side-nav__link.active {
    background: var(--app-accent-soft);
    color: var(--app-accent);
}

.app-sidebar .side-nav__user {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--app-text-muted);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Workload page */
.wl-page-header {
    margin-bottom: 1.25rem;
}

.wl-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
}

.wl-page-meta {
    font-size: 0.875rem;
    color: var(--app-text-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.wl-page-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 100%;
}

.wl-page-toolbar__filters,
.wl-page-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.wl-page-toolbar__filters > * {
    flex: 0 0 auto;
    max-width: 100%;
}

.wl-toolbar-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    min-height: 2rem;
    cursor: pointer;
    user-select: none;
}

.wl-toolbar-check__input {
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    float: none;
    vertical-align: middle;
}

.wl-toolbar-check--switch .wl-toolbar-check__input {
    width: 2em;
    height: 1.1em;
}

.wl-toolbar-check__label {
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .wl-toolbar-check__label {
        white-space: normal;
    }
}

.wl-idle-agent-filter {
    min-height: 2rem;
}

.wl-title-filter {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: min(100%, 12rem);
    max-width: min(100%, 16rem);
}

.wl-title-filter__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    line-height: 1.1;
}

.wl-title-filter__input {
    min-width: 10rem;
}

.wl-label-filter {
    position: relative;
    flex: 0 0 auto;
    max-width: min(100%, 14rem);
}

.wl-label-filter__chip {
    max-width: min(100%, 14rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.wl-label-filter__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: transparent;
}

.wl-label-filter__panel {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: min(18rem, calc(100vw - 1.5rem));
    max-width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(60vh, 20rem);
    overflow: auto;
    padding: 0.75rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.wl-label-filter__options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wl-label-filter__option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
}

.wl-label-filter__option span {
    overflow-wrap: anywhere;
}

@media (max-width: 390px) {
    .wl-label-filter__panel {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: 0.75rem;
        max-width: none;
        min-width: 0;
    }
}

.wl-person-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.375rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 0.25rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
}

.wl-person-tabs__btn {
    flex: 0 0 auto;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-text-muted);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wl-person-tabs__btn:hover {
    border-color: var(--app-accent);
    color: var(--app-accent);
}

.wl-person-tabs__btn.active {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #fff;
}

.wl-section {
    margin-bottom: 1.5rem;
}

.wl-section__heading {
    margin: 0 0 0.65rem;
}

.wl-section__toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.35rem 0.15rem;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-radius: var(--app-radius-sm);
    min-height: 2.75rem;
}

.wl-section__toggle:hover {
    background: var(--app-surface-2);
}

.wl-section__toggle:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
}

.wl-section__chevron {
    flex: 0 0 auto;
    font-size: 0.875rem;
    color: var(--app-text-muted);
    transition: transform 0.15s ease;
}

.wl-section--collapsed .wl-section__chevron {
    transform: rotate(-90deg);
}

.wl-section--collapsed .wl-section__body {
    display: none;
}

.wl-section__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 1 1 auto;
    min-width: 0;
}

.wl-section__count {
    font-weight: 500;
    color: var(--app-text-muted);
    font-size: 0.875rem;
    flex: 0 0 auto;
}

.wl-table-wrap {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
}

.wl-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.wl-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.wl-badge--neutral {
    background: var(--app-surface-2);
    color: var(--app-text);
    border-color: var(--app-border);
}

.wl-badge--info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.wl-badge--warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.wl-badge--danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.wl-badge--success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.wl-badge--purple {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.wl-badge--muted {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

@media (prefers-color-scheme: dark) {
    .wl-badge--info { background: #1e3a8a; color: #bfdbfe; border-color: #3b82f6; }
    .wl-badge--warning { background: #78350f; color: #fde68a; border-color: #d97706; }
    .wl-badge--danger { background: #7f1d1d; color: #fecaca; border-color: #ef4444; }
    .wl-badge--success { background: #14532d; color: #bbf7d0; border-color: #22c55e; }
    .wl-badge--purple { background: #4c1d95; color: #ddd6fe; border-color: #8b5cf6; }
    .wl-badge--muted { background: #334155; color: #e2e8f0; border-color: #64748b; }
}

.wl-cards {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
}

.wl-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 0.85rem 0.9rem;
    box-shadow: var(--app-shadow-sm);
    max-width: 100%;
    min-width: 0;
}

.wl-card--expandable {
    cursor: pointer;
}

.wl-card--expanded {
    border-color: var(--app-accent, #2563eb);
}

.wl-table-row--expandable {
    cursor: pointer;
}

.wl-agent-chat-panel {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--app-border);
    max-width: 100%;
    min-width: 0;
}

.wl-agent-chat-panel__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.wl-agent-chat-panel__messages {
    max-height: min(40vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.wl-agent-chat-panel__message {
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    background: var(--app-surface-muted, #f1f5f9);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wl-agent-chat-panel__message--user {
    background: #e0f2fe;
}

.wl-agent-chat-panel__message--assistant {
    background: #f8fafc;
}

.wl-agent-chat-panel__message-label {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--app-text-muted);
    margin-bottom: 0.2rem;
}

.wl-agent-chat-panel__message-body--clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
    overflow: hidden;
    max-height: calc(1.35em * 12 + 0.25rem);
}

.wl-agent-chat-markdown :is(p, ul, ol, pre, blockquote) {
    margin: 0.2rem 0;
}

.wl-agent-chat-markdown :is(h1, h2, h3, h4) {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.35rem 0 0.15rem;
}

.wl-agent-chat-markdown ul,
.wl-agent-chat-markdown ol {
    padding-left: 1.1rem;
}

.wl-agent-chat-markdown pre,
.wl-agent-chat-markdown code {
    font-size: 0.75rem;
}

.wl-agent-chat-markdown pre {
    white-space: pre-wrap;
    padding: 0.25rem 0.35rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.04);
}

.wl-agent-chat-markdown a {
    word-break: break-all;
}

.wl-agent-chat-panel__show-more {
    font-size: 0.75rem;
    margin-top: -0.15rem;
}

.wl-agent-chat-panel__load-earlier {
    font-size: 0.75rem;
    margin: 0 0 0.35rem;
    display: block;
}

.wl-agent-chat-panel__working {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wl-agent-chat-panel__working-label {
    font-size: 0.8125rem;
    color: var(--app-text-muted);
}

.wl-agent-chat-markdown .wl-md-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 0.2rem 0;
}

.wl-agent-chat-markdown .wl-md-table-wrap table {
    font-size: 0.6875rem;
    width: max-content;
    min-width: 9rem;
    margin: 0;
}

.wl-agent-chat-markdown .wl-md-table-wrap th,
.wl-agent-chat-markdown .wl-md-table-wrap td {
    padding: 0.15rem 0.35rem;
    white-space: nowrap;
}

.wl-agent-chat-panel__composer {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    max-width: 100%;
}

.wl-agent-chat-panel__composer .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.wl-agent-chat-panel-row td {
    background: var(--app-surface-muted, #f8fafc);
    padding-top: 0.35rem;
    padding-bottom: 0.65rem;
}

.wl-expanded-panel {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--app-border);
    max-width: 100%;
    min-width: 0;
}

.wl-expanded-panel__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wl-expanded-panel-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: var(--app-surface, #fff);
    color: var(--app-text);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
}

.wl-expanded-panel-tab--active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.wl-expanded-panel-tab__icon {
    flex-shrink: 0;
}

.wl-expanded-panel-tab__label {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 420px) {
    .wl-expanded-panel-tab__label {
        display: none;
    }
}

.wl-expanded-panel .wl-agent-chat-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.wl-github-panel__message--compact {
    padding: 0.3rem 0.45rem;
    font-size: 0.75rem;
}

.wl-panel-post-as {
    margin-top: 0.35rem;
}

.wl-card__title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.5rem;
    overflow-wrap: anywhere;
}

.wl-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.wl-card__label {
    color: var(--app-text-muted);
    font-weight: 500;
}

.wl-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.wl-card__link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
}

.wl-link-chip {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0.05rem 0.35rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.15;
    text-decoration: none;
    border: 1px solid transparent;
    max-width: none;
    white-space: nowrap;
    vertical-align: middle;
}

.wl-link-chip__icon {
    flex: 0 0 auto;
    display: block;
    width: 12px;
    height: 12px;
}

.wl-link-chip__text {
    flex: 0 1 auto;
    white-space: nowrap;
}

.wl-link-chip--trello {
    color: #0079bf;
    background: rgba(0, 121, 191, 0.1);
    border-color: rgba(0, 121, 191, 0.35);
}

.wl-link-chip--trello:hover {
    color: #026aa7;
    background: rgba(0, 121, 191, 0.16);
}

.wl-deploy-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.wl-deploy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
}

.wl-deploy-icon--test {
    background: #facc15;
    color: #422006;
}

.wl-deploy-icon--prod {
    background: #22c55e;
    color: #052e16;
}

.wl-no-reviewer-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    margin-left: 0.25rem;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: #422006;
    background: #fbbf24;
    border: 1px solid #d97706;
    box-sizing: border-box;
}

.wl-bugboy-icon {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: 0.2rem;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wl-bugboy-icon--pending,
.wl-bugboy-icon--running {
    background: #9ca3af;
}

.wl-bugboy-icon--running {
    animation: wl-bugboy-pulse 1.2s ease-in-out infinite;
}

.wl-bugboy-icon--clear {
    background: #22c55e;
}

.wl-bugboy-icon--open {
    background: #ef4444;
}

@keyframes wl-bugboy-pulse {
    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

.wl-link-chip--github-pr {
    color: #1f2937;
    background: rgba(31, 41, 55, 0.06);
    border-color: rgba(31, 41, 55, 0.2);
}

.wl-link-chip--github-pr:hover {
    color: #111827;
    background: rgba(31, 41, 55, 0.1);
}

.wl-desktop-table {
    display: block;
}

@media (max-width: 767.98px) {
    .wl-desktop-table {
        display: none;
    }

    .wl-cards {
        display: flex;
    }

    .table-responsive {
        overflow-x: visible;
    }
}

@media (min-width: 768px) {
    .workload-table {
        min-width: 52rem;
    }
}

/* Kevin tab: Pos | Title | Status | Trello | Agent | PR | Notes — identical on every section */
.workload-table {
    width: 100%;
}

.workload-table-kevin {
    table-layout: auto;
}

.workload-table-birdy {
    table-layout: fixed;
}

.workload-table th,
.workload-table td {
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workload-table-kevin col.col-pos,
.workload-table-kevin .col-pos {
    width: 3rem;
}

.workload-table-kevin col.col-title,
.workload-table-kevin .col-title {
    width: auto;
}

.workload-table-kevin col.col-status,
.workload-table-kevin .col-status {
    width: 9.5rem;
}

.workload-table-kevin col.col-trello,
.workload-table-kevin .col-trello {
    width: 1%;
    min-width: 6.75rem;
    white-space: nowrap;
}

.workload-table-kevin col.col-agent,
.workload-table-kevin .col-agent {
    width: 1%;
    min-width: 5.5rem;
    white-space: nowrap;
}

.workload-table-kevin col.col-pr,
.workload-table-kevin .col-pr {
    width: 1%;
    min-width: 5.25rem;
    white-space: nowrap;
}

.workload-table-kevin col.col-notes,
.workload-table-kevin .col-notes {
    width: 9.5rem;
}

/* Birdy: Pos | Title | Assignees | Status | Trello | Agent | PR | Notes */
.workload-table-birdy col.col-pos,
.workload-table-birdy .col-pos {
    width: 3rem;
}

.workload-table-birdy col.col-title,
.workload-table-birdy .col-title {
    width: auto;
}

.workload-table-birdy col.col-assignees,
.workload-table-birdy .col-assignees {
    width: 8.5rem;
}

.workload-table-birdy col.col-status,
.workload-table-birdy .col-status {
    width: 8.5rem;
}

.workload-table-birdy col.col-trello,
.workload-table-birdy .col-trello {
    width: 6.75rem;
}

.workload-table-birdy col.col-agent,
.workload-table-birdy .col-agent {
    width: 5.5rem;
}

.workload-table-birdy col.col-pr,
.workload-table-birdy .col-pr {
    width: 5.25rem;
}

.workload-table-birdy col.col-notes,
.workload-table-birdy .col-notes {
    width: 8.5rem;
}

.workload-table .col-title,
.workload-table .col-status,
.workload-table .col-notes,
.workload-table .col-assignees {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    text-overflow: unset;
}

.workload-table .col-trello,
.workload-table .col-pr,
.workload-table .col-agent {
    overflow: visible;
    text-overflow: unset;
}

.workload-table .col-trello a,
.workload-table .col-pr a,
.workload-table .col-trello .wl-link-chip,
.workload-table .col-pr .wl-link-chip {
    display: inline-flex;
    text-align: left;
    overflow: visible;
    white-space: nowrap;
    max-width: none;
}

.wl-agent-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    line-height: 1.15;
    min-height: 0;
}

.wl-agent-cell__chat-row {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    line-height: 1.15;
}

.wl-cursor-chat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
    color: #374151;
    padding: 0.05rem 0.3rem;
    border-radius: 6px;
    border: 1px solid rgba(55, 65, 81, 0.18);
    background: rgba(55, 65, 81, 0.06);
    vertical-align: middle;
}

.wl-cursor-chat-link:hover {
    color: #111827;
    background: rgba(55, 65, 81, 0.1);
}

.wl-cursor-chat-link__icon {
    display: block;
    width: 16px;
    height: 16px;
}

.wl-follow-up-hold-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--app-text-muted, #6b7280);
    margin: 0 0 0.25rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.wl-follow-up-hold-check input {
    margin: 0;
    flex-shrink: 0;
}

.workload-table .col-notes .wl-follow-up-hold-check {
    display: flex;
    margin-bottom: 0.35rem;
}

.wl-agent-cell .wl-change-agent-link {
    font-size: 0.75rem;
    line-height: 1.15;
    padding: 0;
    margin: 0;
    min-height: 0;
    border: none;
}

.workload-table .col-notes {
    vertical-align: middle;
}

.workload-table .col-notes .wl-badge-row {
    align-items: center;
    min-height: 1.25rem;
}

.wl-card__actions .wl-agent-cell {
    width: 100%;
}

.workload-agent-status-icon {
    flex-shrink: 0;
}

.wl-cursor-agent-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #6b7280;
    pointer-events: none;
    user-select: none;
}

.wl-cursor-agent-status--running {
    color: #64748b;
}

.wl-cursor-agent-status--finished {
    color: #16a34a;
}

.wl-cursor-agent-status--finished-pr {
    color: #64748b;
}

.wl-cursor-agent-status--error {
    color: #dc2626;
}

.wl-cursor-agent-status--archived {
    color: #94a3b8;
}

.wl-cursor-agent-status--unknown {
    color: #94a3b8;
}

.wl-cursor-dots-spinner .wl-cursor-dot {
    fill: currentColor;
    opacity: 0.35;
    animation: wl-cursor-dot-pulse 1.15s ease-in-out infinite;
}

.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(1) { animation-delay: 0s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(2) { animation-delay: 0.08s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(3) { animation-delay: 0.16s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(4) { animation-delay: 0.24s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(5) { animation-delay: 0.32s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(6) { animation-delay: 0.4s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(7) { animation-delay: 0.48s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(8) { animation-delay: 0.56s; }
.wl-cursor-dots-spinner .wl-cursor-dot:nth-child(9) { animation-delay: 0.64s; }

@keyframes wl-cursor-dot-pulse {
    0%,
    100% {
        opacity: 0.28;
        transform: scale(0.92);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wl-cursor-dots-spinner .wl-cursor-dot {
        animation: none;
        opacity: 0.65;
    }
}

.wl-connect-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.wl-connect-dialog {
    max-width: min(390px, calc(100vw - 1rem));
    margin: 0.5rem auto;
}

.wl-connect-dialog .modal-body,
.wl-connect-dialog .modal-footer,
.wl-connect-dialog .modal-header {
    overflow-x: hidden;
}

.wl-connect-suggestion-list {
    max-height: 220px;
    overflow-y: auto;
}

.wl-change-agent-link {
    font-size: 0.75rem;
    text-decoration: underline;
}
