/* Work Hub layout. Plugin views are not scanned by Filament's Tailwind build,
   so structural styles live here using Filament CSS variables. */

.wh-page {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wh-header-main {
    min-width: 0;
    flex: 1 1 16rem;
}

.wh-project-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    max-width: 28rem;
}

.wh-project-label > span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.wh-project-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-950, #0f172a);
}

.wh-select,
.wh-move-select {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: 0.55rem;
    background: var(--color-white, #fff);
    color: var(--gray-950, #0f172a);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
}

.wh-move-select {
    width: auto;
    max-width: 8.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    color: #475569;
}

.wh-shell {
    display: flex;
    min-height: 520px;
    height: calc(100vh - 12rem);
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid var(--gray-200, #e5e7eb);
    background: var(--color-white, #fff);
}

.wh-tasks,
.wh-sidebar,
.wh-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.wh-tasks {
    width: 32%;
    min-width: 280px;
    border-inline-end: 1px solid var(--gray-200, #e5e7eb);
    background: var(--color-white, #fff);
}

.wh-tasks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.wh-tasks-title {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 650;
}

.wh-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #eef2f7;
    color: #111827;
    border-inline-end: 1px solid var(--gray-200, #e5e7eb);
}

.wh-chat {
    flex: 1 1 auto;
    background: var(--gray-50, #f8fafc);
}

.wh-sidebar-head,
.wh-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

.wh-sidebar-title,
.wh-chat-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--gray-950, #111827);
}

.wh-sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0.5rem 1rem;
}

.wh-section {
    margin-bottom: 1.1rem;
}

.wh-section-label {
    margin: 0 0 0.4rem;
    padding: 0 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.wh-channel {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
    padding: 0.4rem 0.55rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #334155;
    font-size: 0.8125rem;
    text-align: start;
    cursor: pointer;
}

.wh-channel:hover {
    background: rgb(15 23 42 / 0.06);
}

.wh-channel.is-active {
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 16%, transparent);
    color: var(--primary-700, #1d4ed8);
    font-weight: 600;
}

.wh-member {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
}

.wh-member-name {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

.wh-member-role {
    margin: 0;
    font-size: 0.625rem;
    color: #64748b;
}

.wh-members-wrap {
    position: relative;
    flex: 0 0 auto;
}

.wh-members-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2rem;
    padding: 0 0.55rem;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 0.6rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.wh-members-btn:hover,
.wh-members-btn[aria-expanded="true"] {
    background: rgb(15 23 42 / 0.06);
    color: #0f172a;
}

.wh-members-count {
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1;
}

.wh-members-pop {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-end: 0;
    z-index: 30;
    min-width: 15rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.55rem 0.4rem;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 0.75rem;
    background: var(--color-white, #fff);
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.16);
}

.wh-members-pop[x-cloak] {
    display: none;
}

.wh-members-pop-title {
    margin: 0 0.55rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.wh-members-empty {
    margin: 0;
    padding: 0.5rem 0.55rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.wh-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 16%, transparent);
    color: var(--primary-700, #1d4ed8);
    font-weight: 700;
}

.wh-messages {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    flex: 1 1 auto;
    gap: 0.75rem;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
}

.wh-messages-spacer {
    flex: 1 1 auto;
    min-height: 0;
}

.wh-message {
    display: flex !important;
    flex-direction: row !important;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
}

.wh-message-main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
}

.wh-message.is-own {
    flex-direction: row-reverse !important;
}

.wh-message.is-own .wh-message-main {
    align-items: flex-end;
}

.wh-message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.2rem;
}

.wh-message-name {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--gray-950, #0f172a);
}

.wh-message-time {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.wh-bubble {
    max-width: min(36rem, 88%);
    padding: 0.65rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid var(--gray-200, #e5e7eb);
    background: var(--color-white, #fff);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.wh-message.is-own .wh-bubble {
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 12%, #fff);
    border-color: color-mix(in srgb, var(--primary-500, #3b82f6) 28%, transparent);
    color: #0f172a;
}

.wh-quote {
    margin: 0 0 0.45rem;
    padding: 0.35rem 0.6rem;
    border-inline-start: 3px solid var(--primary-500, #3b82f6);
    border-radius: 0.35rem;
    background: rgb(15 23 42 / 0.04);
    color: #64748b;
    font-size: 0.75rem;
}

.wh-task-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
}

.wh-message-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.2rem;
    opacity: 0.35;
}

.wh-message:hover .wh-message-actions {
    opacity: 1;
}

.wh-icon-btn {
    display: inline-flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.wh-icon-btn:hover {
    background: rgb(15 23 42 / 0.06);
    color: #0f172a;
}

.wh-icon-btn.is-primary {
    background: var(--primary-600, #2563eb);
    color: #fff;
}

.wh-icon-btn.is-primary:hover {
    background: var(--primary-500, #3b82f6);
    color: #fff;
}

.wh-composer {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    background: var(--color-white, #fff);
}

.wh-composer-error {
    margin: 0;
    color: #dc2626;
    font-size: 0.75rem;
}

.wh-composer-box {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    width: 100%;
    overflow: visible;
    padding: 0.4rem;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 1rem;
    background: var(--gray-50, #f8fafc);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.wh-composer-field {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.wh-composer-box:focus-within {
    border-color: var(--primary-500, #3b82f6);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500, #3b82f6) 22%, transparent);
}

.wh-mention {
    display: inline;
    color: var(--primary-600, #2563eb);
    font-weight: 600;
}

.wh-mention.is-channel {
    cursor: pointer;
}

.wh-mention.is-channel:hover {
    text-decoration: underline;
}

.wh-bubble.is-mentioned {
    box-shadow: inset 3px 0 0 var(--primary-500, #3b82f6);
}

.wh-mention-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.4rem);
    left: 0;
    z-index: 40;
    display: none;
    max-height: 12rem;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.35rem;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.16);
}

.wh-mention-menu.is-open {
    display: block;
}

.wh-mention-menu::-webkit-scrollbar {
    width: 8px;
}

.wh-mention-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(148 163 184 / 0.7);
}

.wh-mention-menu::-webkit-scrollbar-track {
    background: transparent;
}

.wh-mention-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--gray-800, #1e293b);
    font-size: 0.8125rem;
    line-height: 1.2;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;
}

.wh-mention-item.is-active,
.wh-mention-item:hover {
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 12%, transparent);
}

.wh-mention-item-avatar.is-channel {
    background: rgb(14 165 233 / 0.16);
    color: #0369a1;
}

.wh-mention-item-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
}

.wh-mention-menu[x-cloak] {
    display: none !important;
}

.wh-composer-input,
.wh-composer textarea {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 2.35rem;
    resize: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0.2rem;
    color: var(--gray-950, #0f172a);
    font-size: 0.875rem;
    line-height: 1.45;
}

.wh-composer-input:focus,
.wh-composer textarea:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.wh-send {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 2.35rem;
    min-width: 5.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--primary-600, #2563eb);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.wh-send:hover {
    background: var(--primary-500, #3b82f6);
}

.wh-send:disabled {
    opacity: 0.65;
    cursor: wait;
}

.wh-send-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    pointer-events: none;
}

.wh-send-label {
    pointer-events: none;
}

.wh-attach-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wh-attach-btn {
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #64748b;
    cursor: pointer;
}

.wh-attach-btn:hover,
.wh-attach-btn.is-busy {
    background: rgb(15 23 42 / 0.06);
    color: #0f172a;
}

.wh-pending-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wh-pending-chip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.4rem 0.25rem 0.35rem;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 0.65rem;
    background: var(--gray-50, #f8fafc);
    color: #334155;
    font-size: 0.75rem;
}

.wh-pending-thumb {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.35rem;
    object-fit: cover;
}

.wh-pending-name {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wh-pending-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.wh-pending-remove:hover {
    background: rgb(15 23 42 / 0.08);
    color: #0f172a;
}

.wh-task-open {
    display: inline-flex;
    height: 1.75rem;
    width: 1.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    color: #64748b;
    text-decoration: none;
}

.wh-task-open:hover {
    background: rgb(15 23 42 / 0.06);
    color: var(--primary-600, #2563eb);
}

.wh-task-card.is-overdue {
    border-color: #fca5a5;
}

.wh-deadline.is-overdue {
    color: #dc2626;
    font-weight: 600;
}

.wh-msg-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.wh-msg-file {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    background: rgb(15 23 42 / 0.06);
    color: inherit;
    font-size: 0.75rem;
    text-decoration: none;
}

.wh-msg-file:hover {
    background: rgb(15 23 42 / 0.1);
}

.wh-msg-thumb-link {
    display: block;
    overflow: hidden;
    border-radius: 0.55rem;
}

.wh-msg-thumb {
    display: block;
    max-width: 12rem;
    max-height: 9rem;
    object-fit: cover;
}

.wh-msg-audio {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 14rem;
}

.wh-msg-audio audio {
    width: 100%;
    height: 2.25rem;
}

.wh-msg-audio-name {
    color: #64748b;
    font-size: 0.7rem;
}

.wh-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

.wh-badge {
    display: inline-flex;
    min-width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--danger-500, #ef4444);
    padding: 0 0.25rem;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
}

html.dark .wh-select,
.dark .wh-select,
html.dark .wh-move-select,
.dark .wh-move-select {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

html.dark .wh-project-label > span,
.dark .wh-project-label > span {
    color: #94a3b8;
}

html.dark .wh-project-name,
.dark .wh-project-name {
    color: #f8fafc;
}

html.dark .wh-header,
.dark .wh-header,
html.dark .wh-shell,
.dark .wh-shell,
html.dark .wh-tasks,
.dark .wh-tasks,
html.dark .wh-composer,
.dark .wh-composer {
    background: var(--gray-900, #111827);
    border-color: var(--gray-700, #334155);
}

html.dark .wh-tasks-head,
.dark .wh-tasks-head {
    background: #1e293b;
    border-bottom-color: #334155;
}

html.dark .wh-tasks-title,
.dark .wh-tasks-title {
    color: #f8fafc;
}

html.dark .wh-sidebar,
.dark .wh-sidebar {
    background: #1e293b !important;
    color: #e5e7eb !important;
    border-color: var(--gray-700, #334155);
}

html.dark .wh-chat,
.dark .wh-chat {
    background: #0f172a;
}

html.dark .wh-sidebar-head,
.dark .wh-sidebar-head,
html.dark .wh-chat-header,
.dark .wh-chat-header {
    border-color: var(--gray-700, #334155);
}

html.dark .wh-sidebar-title,
.dark .wh-sidebar-title,
html.dark .wh-chat-title,
.dark .wh-chat-title,
html.dark .wh-message-name,
.dark .wh-message-name,
html.dark .wh-member-name,
.dark .wh-member-name {
    color: #f8fafc;
}

html.dark .wh-section-label,
.dark .wh-section-label,
html.dark .wh-member-role,
.dark .wh-member-role,
html.dark .wh-message-time,
.dark .wh-message-time {
    color: #94a3b8;
}

html.dark .wh-members-btn,
.dark .wh-members-btn {
    border-color: #334155;
    color: #94a3b8;
}

html.dark .wh-members-btn:hover,
.dark .wh-members-btn:hover,
html.dark .wh-members-btn[aria-expanded="true"],
.dark .wh-members-btn[aria-expanded="true"] {
    background: rgb(148 163 184 / 0.12);
    color: #f8fafc;
}

html.dark .wh-members-pop,
.dark .wh-members-pop {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

html.dark .wh-channel,
.dark .wh-channel {
    color: #e2e8f0;
}

html.dark .wh-channel:hover,
.dark .wh-channel:hover {
    background: rgb(148 163 184 / 0.12);
}

html.dark .wh-channel.is-active,
.dark .wh-channel.is-active {
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 22%, transparent);
    color: #bfdbfe;
}

html.dark .wh-bubble,
.dark .wh-bubble {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .wh-message.is-own .wh-bubble,
.dark .wh-message.is-own .wh-bubble {
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 22%, #1e293b);
    border-color: color-mix(in srgb, var(--primary-500, #3b82f6) 40%, #334155);
    color: #f8fafc;
}

html.dark .wh-quote,
.dark .wh-quote {
    background: rgb(148 163 184 / 0.1);
    color: #cbd5e1;
}

html.dark .wh-composer-box,
.dark .wh-composer-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

html.dark .wh-composer-box:focus-within,
.dark .wh-composer-box:focus-within {
    border-color: var(--primary-400, #60a5fa);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500, #3b82f6) 28%, transparent);
}

html.dark .wh-mention,
.dark .wh-mention {
    color: #93c5fd;
}

html.dark .wh-mention-menu,
.dark .wh-mention-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.35);
}

html.dark .wh-mention-item,
.dark .wh-mention-item {
    color: #e2e8f0;
}

html.dark .wh-mention-item.is-active,
.dark .wh-mention-item.is-active,
html.dark .wh-mention-item:hover,
.dark .wh-mention-item:hover {
    background: rgb(148 163 184 / 0.12);
}

html.dark .wh-mention-item-avatar,
.dark .wh-mention-item-avatar {
    background: rgb(147 197 253 / 0.16);
    color: #93c5fd;
}

html.dark .wh-mention-item-avatar.is-channel,
.dark .wh-mention-item-avatar.is-channel {
    background: rgb(56 189 248 / 0.18);
    color: #7dd3fc;
}

html.dark .wh-mention-item-hint,
.dark .wh-mention-item-hint {
    color: #94a3b8;
}

html.dark .wh-composer-input,
.dark .wh-composer-input,
html.dark .wh-composer textarea,
.dark .wh-composer textarea {
    background: transparent;
    border-color: transparent;
    color: #f8fafc;
}

html.dark .wh-msg-file,
.dark .wh-msg-file {
    background: rgb(148 163 184 / 0.12);
}

html.dark .wh-msg-audio-name,
.dark .wh-msg-audio-name {
    color: #94a3b8;
}

html.dark .wh-icon-btn,
.dark .wh-icon-btn {
    color: #94a3b8;
}

html.dark .wh-icon-btn:hover,
.dark .wh-icon-btn:hover {
    background: rgb(148 163 184 / 0.12);
    color: #f8fafc;
}

html.dark .wh-attach-btn:hover,
.dark .wh-attach-btn:hover,
html.dark .wh-attach-btn.is-busy,
.dark .wh-attach-btn.is-busy {
    background: rgb(148 163 184 / 0.12);
    color: #f8fafc;
}

html.dark .wh-pending-chip,
.dark .wh-pending-chip {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .wh-pending-remove:hover,
.dark .wh-pending-remove:hover {
    background: rgb(148 163 184 / 0.12);
    color: #f8fafc;
}

html.dark .wh-task-open,
.dark .wh-task-open {
    color: #94a3b8;
}

html.dark .wh-task-open:hover,
.dark .wh-task-open:hover {
    background: rgb(148 163 184 / 0.12);
    color: #bfdbfe;
}

html.dark .wh-task-card.is-overdue,
.dark .wh-task-card.is-overdue {
    border-color: #7f1d1d;
}

html.dark .wh-deadline.is-overdue,
.dark .wh-deadline.is-overdue {
    color: #fca5a5;
}

html.dark .wh-avatar,
.dark .wh-avatar {
    background: color-mix(in srgb, var(--primary-500, #3b82f6) 22%, transparent);
    color: #bfdbfe;
}

[dir="rtl"] .wh-shell {
    flex-direction: row-reverse;
}

@media (max-width: 1100px) {
    .wh-shell {
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .wh-tasks,
    .wh-sidebar,
    .wh-chat {
        width: 100%;
        min-height: 22rem;
        border-inline-end: 0;
        border-bottom: 1px solid var(--gray-200, #e5e7eb);
    }
}
