.dashboard-shell {
    padding: 1.5rem;
}

.dashboard-grid {
    align-items: stretch;
    gap: 1.25rem;
}

.panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.panel-title {
    font-weight: 600;
}

.view-toggle .mud-button-root {
    min-width: 72px;
    font-size: 0.85rem;
    text-transform: none;
}

.task-groups,
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-group {
    border-radius: 14px;
    overflow: hidden;
}

.task-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.task-group-body {
    display: flex;
    flex-direction: column;
}

.hotness-overdue {
    background: rgba(239, 68, 68, 0.08);
}

.hotness-overdue .task-group-header {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.hotness-today {
    background: rgba(217, 119, 6, 0.08);
}

.hotness-today .task-group-header {
    background: rgba(217, 119, 6, 0.16);
    color: #92400e;
}

.hotness-upcoming {
    background: rgba(15, 23, 42, 0.05);
}

.hotness-upcoming .task-group-header {
    background: rgba(15, 23, 42, 0.1);
    color: #1f2937;
}

.task-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    outline: none;
}

.task-row:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.7);
    background-color: rgba(59, 130, 246, 0.08);
}

.task-row:hover {
    background-color: rgba(15, 23, 42, 0.08);
}

.task-row-left {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #0f172a;
}

.task-date {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
}

.task-time {
    color: #475569;
    font-size: 0.78rem;
}

.task-row-middle {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.task-title,
.task-matter,
.note-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-title {
    font-weight: 600;
    color: #1f2937;
}

.task-matter {
    font-size: 0.82rem;
    color: #64748b;
}

.task-row-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.action-icon {
    color: #1f2937;
}

.action-icon.time-entry {
    color: #2563eb;
}

.notes-panel .note-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}

.notes-panel .note-row:hover,
.notes-panel .note-row:focus-visible {
    background-color: rgba(15, 23, 42, 0.07);
}

.note-row:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.7);
}

.note-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.note-title {
    font-weight: 600;
    color: #1e293b;
}

.note-timestamp {
    font-size: 0.78rem;
    color: #64748b;
}

.empty-state {
    padding: 1.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    text-align: center;
    color: #64748b;
}

.dashboard-drawer {
    width: min(420px, 92vw);
}

.drawer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.drawer-content {
    padding: 0 1.25rem 1.5rem;
}

.drawer-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-value {
    color: #1f2937;
}

.drawer-task-title {
    font-weight: 600;
    color: #0f172a;
}

@media (max-width: 960px) {
    .dashboard-shell {
        padding: 1rem 0.75rem 2rem;
    }

    .panel {
        padding: 1rem;
        border-radius: 14px;
    }
}
