.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    padding: 1.25rem;
    border-right: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(10, 18, 31, 0.98) 0%, rgba(11, 28, 46, 0.94) 100%);
    color: #e7eef8;
    z-index: 20;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-brand {
    padding: 0.9rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-close,
.mobile-menu-button {
    display: none;
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
}

.mobile-menu-button {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    margin-bottom: 0.75rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
}

.sidebar-nav a {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    color: rgba(231, 238, 248, 0.92);
    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.sidebar-nav a.is-active {
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 26, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 18;
}

.dashboard-layout {
    margin-left: 272px;
    padding: 1.5rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.topbar h1 {
    margin: 0;
    font-size: 1.85rem;
}

.topbar p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.topbar-notifications {
    position: relative;
}

.topbar-notification-button {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.topbar-notification-button::-webkit-details-marker {
    display: none;
}

.topbar-notification-count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.45rem;
    background: linear-gradient(135deg, #c03636, #b45309);
    color: #fff;
    font-size: 0.82rem;
}

.topbar-notification-count.is-empty {
    background: rgba(23, 32, 51, 0.12);
    color: var(--text);
}

.topbar-notification-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(92vw, 420px);
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(253, 254, 254, 0.98);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 0.9rem;
    z-index: 50;
}

.topbar-notification-head,
.notification-item-top,
.notification-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.topbar-notification-list,
.notification-center-list {
    display: grid;
    gap: 0.8rem;
}

.topbar-notification-link {
    color: var(--primary);
    font-weight: 700;
}

.notification-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    background: rgba(255, 255, 255, 0.84);
}

.notification-item.is-unread {
    border-color: rgba(15, 118, 110, 0.26);
    box-shadow: inset 3px 0 0 #0f766e;
}

.notification-item-lg {
    padding: 1rem 1.1rem;
}

.notification-item p,
.notification-item small,
.notification-read-label {
    color: var(--muted);
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.notification-badge.is-default {
    background: rgba(23, 32, 51, 0.1);
    color: var(--text);
}

.notification-badge.is-alert {
    background: rgba(192, 54, 54, 0.12);
    color: #b42318;
}

.notification-badge.is-task {
    background: rgba(12, 99, 212, 0.12);
    color: #0c63d4;
}

.notification-badge.is-request {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.notification-badge.is-success {
    background: rgba(34, 139, 34, 0.12);
    color: #1f7a1f;
}

.notification-empty-state {
    min-height: 92px;
    display: grid;
    place-items: center;
}

.notification-center-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.notification-filter-card {
    width: min(100%, 340px);
}

.notification-center-card {
    flex: 1;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 246, 0.82));
    box-shadow: var(--shadow);
}

.hero-card h2 {
    margin: 0.7rem 0 0.45rem;
    font-size: 2rem;
}

.hero-card p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-link,
.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #164e63);
    color: #fff;
    font-weight: 600;
    border: 0;
    cursor: pointer;
}

.hero-link:hover,
.action-chip:hover {
    opacity: 0.94;
}

.hero-link-muted,
.action-chip-muted {
    background: rgba(23, 32, 51, 0.08);
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.stat-card strong {
    font-size: 2rem;
    line-height: 1;
}

.stat-card small,
.stat-label {
    color: var(--muted);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-rich-grid .panel-card {
    padding: 1.25rem;
}

.panel-card {
    grid-column: span 6;
    padding: 1.4rem;
}

.panel-span-5 {
    grid-column: span 5;
}

.panel-span-6 {
    grid-column: span 6;
}

.panel-span-7 {
    grid-column: span 7;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading h2,
.panel-card h2,
.panel-card h3 {
    margin: 0;
}

.panel-heading p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.panel-heading a,
.text-link {
    color: var(--primary);
    font-weight: 600;
}

.stack-list {
    display: grid;
    gap: 0.85rem;
}

.person-row,
.task-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(23, 32, 51, 0.07);
    border-radius: 20px;
    background: rgba(248, 251, 253, 0.9);
}

.person-copy,
.task-main {
    display: grid;
    gap: 0.25rem;
}

.person-copy span,
.task-main span,
.compact-card p,
.compact-card span,
.compact-card small,
.person-meta small,
.user-card-body p,
.user-card-body span,
.user-card-body small {
    color: var(--muted);
}

.person-meta,
.task-meta {
    display: grid;
    gap: 0.35rem;
    justify-items: end;
    text-align: right;
}

.compact-card {
    padding: 1rem;
    border: 1px solid rgba(23, 32, 51, 0.07);
    border-radius: 20px;
    background: rgba(248, 251, 253, 0.9);
}

.compact-card p {
    margin: 0.65rem 0;
}

.compact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-card-header div {
    display: grid;
    gap: 0.15rem;
}

.empty-state,
.empty-state-panel {
    display: grid;
    place-items: center;
    min-height: 160px;
    text-align: center;
    color: var(--muted);
}

.empty-state-panel {
    padding: 1.8rem;
}

.priority-badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-pill,
.status-dot {
    background: rgba(103, 116, 138, 0.16);
    color: #516072;
}

.status-online {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.status-away {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.status-busy {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.status-offline {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.priority-normal {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.priority-important,
.priority-medium {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.priority-urgent,
.priority-high {
    background: rgba(249, 115, 22, 0.18);
    color: #c2410c;
}

.priority-critical {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.avatar {
    object-fit: cover;
    border-radius: 22px;
    background: rgba(15, 118, 110, 0.12);
}

.avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

.avatar-md {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 24px;
}

.users-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.users-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.user-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.user-card-top {
    position: relative;
    width: fit-content;
}

.status-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 999px;
}

.user-card-body {
    display: grid;
    gap: 0.4rem;
}

.user-card-body h3 {
    margin: 0;
}

.user-card-body p,
.user-card-body span,
.user-card-body small {
    margin: 0;
}

.user-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.notification-card strong,
.notification-card p,
.notification-card small {
    display: block;
}

.request-compose-card {
    margin-bottom: 1rem;
}

.request-target-card {
    margin-bottom: 1rem;
}

.request-card-header {
    align-items: flex-start;
    justify-content: space-between;
}

.request-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.request-actions form {
    margin: 0;
}

.muted-copy {
    color: var(--muted);
}

.group-card {
    align-content: start;
}

.group-card-meta,
.group-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.group-avatar-preview {
    display: grid;
    place-items: center;
    min-height: 100%;
}

.group-member-picker,
.group-members-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.group-member-option,
.group-member-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(23, 32, 51, 0.07);
    border-radius: 20px;
    background: rgba(248, 251, 253, 0.9);
}

.group-member-option span,
.group-invite-form h4 {
    display: grid;
    gap: 0.15rem;
}

.group-summary-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(248, 251, 253, 0.9);
    margin-top: 1rem;
}

.group-invite-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.group-invite-form button {
    justify-self: start;
    min-height: 42px;
    padding: 0.75rem 0.95rem;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #0f766e, #164e63);
    color: #fff;
}

.group-invite-form .danger-button {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.request-actions button,
.secondary-button,
.danger-button {
    min-height: 42px;
    padding: 0.75rem 0.95rem;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
}

.request-actions button {
    background: linear-gradient(135deg, #0f766e, #164e63);
    color: #fff;
}

.secondary-button {
    background: rgba(23, 32, 51, 0.08);
    color: var(--text);
}

.danger-button {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.state-banner {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 20px;
    background: rgba(248, 251, 253, 0.94);
}

.state-banner p,
.state-banner strong {
    margin: 0;
}

.state-banner-success {
    border-color: rgba(34, 197, 94, 0.18);
    background: rgba(236, 253, 245, 0.92);
}

.state-banner-warning {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(255, 251, 235, 0.94);
}

.state-banner-danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(254, 242, 242, 0.94);
}

.tasks-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.tasks-sidebar-card {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.tasks-stats-grid {
    margin-bottom: 1rem;
}

.tasks-filter-form,
.tasks-editor-form {
    display: grid;
    gap: 0.9rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field label {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.94);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    gap: 0.9rem;
}

.form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tasks-form-heading {
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tasks-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tasks-form-actions button {
    min-height: 42px;
    padding: 0.75rem 0.95rem;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #0f766e, #164e63);
    color: #fff;
}

.tasks-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 1rem;
}

.tasks-board-wrap {
    display: grid;
    gap: 1rem;
}

.tasks-composer-card {
    display: none;
    gap: 1rem;
}

.tasks-composer-card.is-open {
    display: grid;
}

.tasks-composer-heading {
    margin-bottom: 0;
}

.tasks-advanced {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(248, 251, 253, 0.9);
}

.tasks-advanced summary {
    cursor: pointer;
    font-weight: 700;
}

.tasks-advanced-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
}

.tasks-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 16;
    min-height: 54px;
    padding: 0.95rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #164e63);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
    cursor: pointer;
}

.task-column {
    display: grid;
    gap: 0.9rem;
    min-height: 360px;
}

.task-column-list {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.task-empty-state {
    min-height: 180px;
    border-radius: 18px;
    background: rgba(248, 251, 253, 0.9);
    border: 1px dashed rgba(23, 32, 51, 0.12);
}

.task-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 22px;
    background: rgba(248, 251, 253, 0.94);
}

.task-card.due-overdue {
    border-color: rgba(239, 68, 68, 0.22);
}

.task-card.due-today {
    border-color: rgba(245, 158, 11, 0.22);
}

.task-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.task-card-top strong,
.task-card-top p {
    display: block;
}

.task-card-top p,
.task-card-meta span {
    color: var(--muted);
}

.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.task-chip-list,
.task-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.task-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.task-mini-chip.is-group {
    background: rgba(23, 32, 51, 0.08);
    color: var(--text);
}

.tasks-board-page {
    gap: 1.15rem;
}

.tasks-board-hero {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.22), transparent 32%),
        linear-gradient(145deg, #0f4c81, #0b63a5 58%, #0b4f86);
    color: #f8fbff;
    box-shadow: 0 26px 60px rgba(3, 26, 48, 0.24);
}

.tasks-board-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    padding: 1.7rem 1.8rem;
    align-items: center;
}

.tasks-board-copy .eyebrow {
    color: rgba(248, 251, 255, 0.72);
}

.tasks-board-copy h2,
.tasks-board-copy p,
.tasks-summary-pill strong,
.tasks-summary-pill span {
    margin: 0;
}

.tasks-board-copy h2 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

.tasks-board-copy p {
    max-width: 64ch;
    color: rgba(248, 251, 255, 0.84);
    line-height: 1.6;
}

.tasks-board-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-end;
    align-items: center;
}

.tasks-summary-pill {
    min-width: 112px;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(3, 26, 48, 0.3), rgba(3, 26, 48, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.tasks-summary-pill strong {
    display: block;
    font-size: 1.35rem;
    color: #ffffff;
}

.tasks-summary-pill span {
    color: rgba(248, 251, 255, 0.82);
}

.tasks-toolbar-shell {
    padding: 1rem 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.96));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.tasks-toolbar-form {
    display: grid;
    grid-template-columns: minmax(280px, 1.65fr) repeat(3, minmax(0, 0.78fr)) auto;
    gap: 0.9rem;
    align-items: end;
}

.tasks-toolbar-field,
.tasks-form-field {
    display: grid;
    gap: 0.45rem;
}

.tasks-toolbar-field span,
.tasks-form-field span {
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.tasks-toolbar-field input,
.tasks-toolbar-field select,
.tasks-form-field input,
.tasks-form-field select,
.tasks-form-field textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 16px;
    padding: 0.82rem 0.95rem;
    background: #ffffff;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tasks-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.tasks-toolbar-field input::placeholder,
.tasks-form-field input::placeholder,
.tasks-form-field textarea::placeholder {
    color: #94a3b8;
}

.tasks-toolbar-actions,
.tasks-modal-actions,
.task-board-actions,
.tasks-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tasks-primary-action,
.tasks-secondary-action,
.tasks-ghost-action,
.tasks-danger-action,
.task-add-inline,
.task-card-open {
    border: 0;
    border-radius: 14px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: 700;
}

.tasks-primary-action,
.tasks-secondary-action {
    background: linear-gradient(135deg, #0b5fa1, #0f4c81);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(11, 95, 161, 0.24);
}

.tasks-ghost-action,
.task-add-inline,
.task-card-open {
    background: rgba(226, 232, 240, 0.72);
    color: #0f172a;
}

.tasks-danger-action {
    background: rgba(225, 29, 72, 0.12);
    color: #be123c;
}

.tasks-stage-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

.tasks-stage-pill {
    min-width: 0;
    padding: 1rem 1rem 1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.96));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
}

.tasks-stage-pill::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--stage-accent, #2563eb);
}

.tasks-stage-pill strong,
.tasks-stage-pill span {
    display: block;
    margin: 0;
}

.tasks-stage-pill strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.tasks-stage-pill span {
    color: #475569;
}

.tasks-kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 360px);
    gap: 1rem;
    overflow-x: auto;
    align-items: start;
    padding: 0.2rem 0 0.8rem;
}

.task-stage-column {
    display: grid;
    gap: 0.9rem;
    min-height: 460px;
    padding: 1.05rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(7, 20, 34, 0.94), rgba(11, 28, 48, 0.95)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.task-stage-column.is-drop-target {
    outline: 2px dashed rgba(255, 255, 255, 0.35);
    outline-offset: 4px;
}

.task-stage-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #f8fbff;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.task-stage-header h3,
.task-stage-header p,
.task-stage-header strong {
    margin: 0;
}

.task-stage-header p {
    color: rgba(248, 251, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.45;
}

.task-stage-header-meta {
    display: grid;
    gap: 0.5rem;
    justify-items: end;
}

.task-stage-header-meta strong {
    font-size: 1.05rem;
    color: #ffffff;
}

.task-stage-list {
    display: grid;
    gap: 0.85rem;
    min-height: 280px;
}

.task-column-empty {
    display: grid;
    place-items: center;
    min-height: 140px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 251, 255, 0.8);
    text-align: center;
    padding: 1rem;
}

.task-board-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 4px solid var(--task-accent, #2563eb);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.task-board-card.is-dragging {
    opacity: 0.55;
}

.task-board-card.due-overdue {
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.16);
}

.task-board-card-top,
.task-board-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
}

.task-card-badges,
.task-board-meta,
.task-assignee-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.task-card-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.task-board-card-copy strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.task-card-chip.priority-low {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.task-card-chip.priority-medium {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.task-card-chip.priority-high {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.task-card-chip.priority-critical {
    background: rgba(225, 29, 72, 0.14);
    color: #be123c;
}

.task-board-card-copy strong,
.task-board-card-copy p,
.task-next-step span,
.task-next-step strong {
    margin: 0;
}

.task-board-card-copy p,
.task-board-meta span {
    color: #475569;
    line-height: 1.45;
}

.task-next-step {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.08);
}

.task-next-step span {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.task-board-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.task-stage-column .task-add-inline {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.task-stage-column .task-add-inline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.task-board-actions .tasks-secondary-action {
    background: linear-gradient(135deg, #0b5fa1, #0f4c81);
    color: #ffffff;
}

.task-avatar-fallback {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
}

.tasks-modal[hidden] {
    display: none;
}

.tasks-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.tasks-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.tasks-modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(680px, 100%);
    height: 100%;
    padding: 1.2rem 1.2rem 1.5rem;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fbff, #f2f7fb);
    box-shadow: -24px 0 48px rgba(15, 23, 42, 0.18);
}

.tasks-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 0.95rem;
    background: linear-gradient(180deg, #f8fbff 75%, rgba(248, 251, 255, 0.4));
    backdrop-filter: blur(8px);
}

.tasks-modal-header h3 {
    margin: 0;
    color: #0f172a;
}

.tasks-modal-form {
    display: grid;
    gap: 1rem;
}

.tasks-modal-color-row,
.tasks-form-grid {
    display: grid;
    gap: 0.9rem;
}

.tasks-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tasks-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tasks-color-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    background: var(--swatch);
    cursor: pointer;
}

.tasks-inline-note {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}

.tasks-attachment-list {
    display: grid;
    gap: 0.7rem;
}

.task-file-chip {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.task-file-chip a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.tasks-modal-open {
    overflow: hidden;
}

@media (max-width: 960px) {
    .tasks-board-hero,
    .tasks-toolbar-form,
    .tasks-form-grid-2,
    .tasks-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .tasks-stage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tasks-board-summary {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .tasks-stage-stats {
        grid-template-columns: 1fr;
    }

    .tasks-board-hero,
    .tasks-toolbar-shell,
    .tasks-stage-pill,
    .task-stage-column {
        border-radius: 22px;
    }
}

.profile-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.profile-summary-card,
.profile-forms,
.settings-shell,
.settings-main {
    display: grid;
    gap: 1rem;
}

.profile-summary-card {
    position: sticky;
    top: 1rem;
}

.profile-avatar-block {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.profile-avatar-block h2,
.profile-avatar-block p,
.profile-avatar-block small {
    margin: 0;
}

.profile-avatar-block p,
.profile-avatar-block small,
.profile-hint-list li,
.settings-option small,
.settings-preview-card p {
    color: var(--muted);
}

.profile-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    object-fit: cover;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.profile-status-list {
    display: grid;
    gap: 0.75rem;
}

.profile-status-list div,
.settings-preview-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(248, 251, 253, 0.9);
    border: 1px solid rgba(23, 32, 51, 0.07);
}

.profile-status-list span,
.settings-preview-list span {
    color: var(--muted);
}

.profile-avatar-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.profile-upload-trigger {
    width: 100%;
}

.profile-form-grid {
    gap: 1rem;
}

.profile-form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.profile-hint-list {
    display: grid;
    gap: 0.7rem;
    padding-left: 1.1rem;
    margin: 0;
}

.settings-shell {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
}

.settings-preview-card,
.settings-main-card,
.settings-help-card {
    display: grid;
    gap: 1rem;
}

.settings-preview-card {
    position: sticky;
    top: 1rem;
}

.settings-preview-list {
    display: grid;
    gap: 0.75rem;
}

.settings-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(248, 251, 253, 0.9);
}

.settings-check input {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
}

.settings-check span {
    display: grid;
    gap: 0.25rem;
}

.settings-option-grid {
    display: grid;
    gap: 0.85rem;
}

.settings-option {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(248, 251, 253, 0.9);
}

@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .users-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tasks-shell {
        grid-template-columns: 1fr;
    }

    .profile-shell,
    .settings-shell {
        grid-template-columns: 1fr;
    }

    .tasks-sidebar-card {
        position: static;
    }

    .profile-summary-card,
    .settings-preview-card {
        position: static;
    }

    .tasks-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .sidebar {
        width: min(86vw, 320px);
        transform: translateX(-110%);
        transition: transform 0.22s ease;
        box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
    }

    .dashboard-layout {
        margin-left: 0;
        padding: 1rem 0.9rem 5rem;
    }

    .mobile-menu-button,
    .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar > div:first-child {
        width: 100%;
    }

    .topbar h1 {
        font-size: 1.45rem;
    }

    body.is-mobile-nav-open {
        overflow: hidden;
    }

    body.is-mobile-nav-open .sidebar {
        transform: translateX(0);
    }

    body.is-mobile-nav-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-card,
    .panel-heading,
    .topbar,
    .topbar-actions,
    .users-filter-form,
    .person-row,
    .task-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .notification-filter-card {
        width: 100%;
    }

    .notification-center-grid {
        grid-template-columns: 1fr;
    }

    .topbar-notifications,
    .topbar-notification-button {
        width: 100%;
    }

    .topbar-notification-panel {
        position: static;
        width: 100%;
    }

    .stats-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar-block {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .form-row-2,
    .tasks-board {
        grid-template-columns: 1fr;
    }

    .tasks-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .panel-card,
    .panel-span-5,
    .panel-span-6,
    .panel-span-7 {
        grid-column: 1 / -1;
    }

    .person-meta,
    .task-meta {
        justify-items: start;
        text-align: left;
    }

    .profile-status-list div,
    .settings-preview-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .users-filter-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
        padding: 1rem 0.85rem;
    }

    .dashboard-layout {
        padding: 0.85rem 0.75rem 5rem;
    }

    .hero-card {
        padding: 1.15rem;
    }

    .profile-avatar-preview {
        width: 84px;
        height: 84px;
    }
}

@media (min-width: 961px) {
    .tasks-fab {
        display: none;
    }
}
